Skip to content

Commit

Permalink
fix(test): fix the issue of error dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhiXin18 committed Sep 29, 2024
1 parent 6f624d6 commit 2f467f3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions integration_test/e2e_unsuccessful_register_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -218,12 +218,14 @@ void main() {
'Please accept the terms and conditions and allow notifications.');

// Test 5: Only one checkbox is checked
await registerRobot.dismissKeyboard();
await registerRobot.tapTermsCheckbox();
await registerRobot.tapGetStartedButton();
await Future.delayed(const Duration(seconds: 2));
await registerRobot.verifyErrorMessage(
'Please accept the terms and conditions and allow notifications.');

await registerRobot.dismissKeyboard();
await registerRobot.tapTermsCheckbox();
await registerRobot.tapNotificationCheckbox();
await registerRobot.tapGetStartedButton();
Expand Down

0 comments on commit 2f467f3

Please sign in to comment.