Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixing test
Browse files Browse the repository at this point in the history
Dante291 committed Nov 26, 2023
1 parent f600e67 commit 0e80997
Showing 1 changed file with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -96,22 +96,11 @@ void main() {
});
testWidgets('Testing the Cancel button', (tester) async {
await prepareDatePicker(tester, (date) async {
// Find the TextButton with a specific key
final cancelBtnFinder = find.byKey(const ValueKey('CancelButton'));

// Ensure the TextButton is present
expect(cancelBtnFinder, findsOneWidget);

// Ensure the TextButton is visible
await tester.ensureVisible(cancelBtnFinder);

// Tap the TextButton
await tester.tap(cancelBtnFinder);

// Wait for the animation to complete
await tester.pumpAndSettle();

// Ensure that the expected text is present
expect(
find.textContaining(
(await date).toLocal().toString().split(' ')[0],

0 comments on commit 0e80997

Please sign in to comment.