Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
oldGreg5 committed Jan 16, 2025
1 parent c6501ba commit ea0b1cc
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 44 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ void main() async {
(PatrolTester $) async {
await $.pumpWidgetAndSettle(App(routerConfig: router));
await $(OverallSpacesPage.userShortcutBtn)
.tap(settleTimeout: TimeConstants.long.duration);
.tap(settleTimeout: Time.long.duration);
await $(AppBarPage.accountPopupBtn).tap();
await AccountDropdownPage.accountDropdownLooksAsExpected($);
await AccountDropdownPage.accountDropdownContainsSpecificData($);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ void main() async {
(PatrolTester $) async {
await $.pumpWidgetAndSettle(App(routerConfig: router));
await $(OverallSpacesPage.visitorShortcutBtn)
.tap(settleTimeout: TimeConstants.long.duration);
.tap(settleTimeout: Time.long.duration);
expect($(AppBarPage.spacesDrawerButton).exists, false);
},
);
Expand All @@ -47,7 +47,7 @@ void main() async {
(PatrolTester $) async {
await $.pumpWidgetAndSettle(App(routerConfig: router));
await $(OverallSpacesPage.guestShortcutBtn)
.tap(settleTimeout: TimeConstants.long.duration);
.tap(settleTimeout: Time.long.duration);
await $(AppBarPage.spacesDrawerButton).waitUntilVisible().tap();
SpacesDrawerPage.commonElementsLookAsExpected($);

Expand All @@ -67,7 +67,7 @@ void main() async {
(PatrolTester $) async {
await $.pumpWidgetAndSettle(App(routerConfig: router));
await $(OverallSpacesPage.guestShortcutBtn)
.tap(settleTimeout: TimeConstants.long.duration);
.tap(settleTimeout: Time.long.duration);
await $(AppBarPage.spacesDrawerButton).waitUntilVisible().tap();

// iterate thru spaces by clicking next
Expand All @@ -93,7 +93,7 @@ void main() async {
(PatrolTester $) async {
await $.pumpWidgetAndSettle(App(routerConfig: router));
await $(OverallSpacesPage.userShortcutBtn)
.tap(settleTimeout: TimeConstants.long.duration);
.tap(settleTimeout: Time.long.duration);
await $(AppBarPage.spacesDrawerButton).waitUntilVisible().tap();
SpacesDrawerPage.commonElementsLookAsExpected($);
for (final space in Space.values) {
Expand All @@ -108,7 +108,7 @@ void main() async {
(PatrolTester $) async {
await $.pumpWidgetAndSettle(App(routerConfig: router));
await $(OverallSpacesPage.guestShortcutBtn)
.tap(settleTimeout: TimeConstants.long.duration);
.tap(settleTimeout: Time.long.duration);
await $(AppBarPage.spacesDrawerButton).waitUntilVisible().tap();
await $(SpacesDrawerPage.allSpacesBtn).tap();
expect($(OverallSpacesPage.spacesListView), findsOneWidget);
Expand All @@ -120,7 +120,7 @@ void main() async {
(PatrolTester $) async {
await $.pumpWidgetAndSettle(App(routerConfig: router));
await $(OverallSpacesPage.userShortcutBtn)
.tap(settleTimeout: TimeConstants.long.duration);
.tap(settleTimeout: Time.long.duration);
await $(AppBarPage.spacesDrawerButton).waitUntilVisible().tap();
await $(SpacesDrawerPage.allSpacesBtn).tap();
expect($(OverallSpacesPage.spacesListView), findsOneWidget);
Expand All @@ -139,7 +139,7 @@ void main() async {
};
await $.pumpWidgetAndSettle(App(routerConfig: router));
await $(OverallSpacesPage.userShortcutBtn)
.tap(settleTimeout: TimeConstants.long.duration);
.tap(settleTimeout: Time.long.duration);
await $(AppBarPage.spacesDrawerButton).waitUntilVisible().tap();
for (final space in Space.values) {
await $(SpacesDrawerPage.chooserItem(space)).tap();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ void main() async {
(PatrolTester $) async {
await $.pumpWidgetAndSettle(App(routerConfig: router));
await $(OverallSpacesPage.visitorShortcutBtn)
.tap(settleTimeout: TimeConstants.long.duration);
.tap(settleTimeout: Time.long.duration);
await $(AppBarPage.getStartedBtn).tap();
expect($(OnboardingPage.registrationInfoPanel), findsOneWidget);
expect($(OnboardingPage.registrationDetailsPanel), findsOneWidget);
Expand All @@ -52,7 +52,7 @@ void main() async {
(PatrolTester $) async {
await $.pumpWidgetAndSettle(App(routerConfig: router));
await $(AppBarPage.getStartedBtn)
.tap(settleTimeout: TimeConstants.long.duration);
.tap(settleTimeout: Time.long.duration);
await OnboardingPage.onboardingScreenLooksAsExpected(
$,
RegistrationState.getStarted,
Expand All @@ -65,7 +65,7 @@ void main() async {
(PatrolTester $) async {
await $.pumpWidgetAndSettle(App(routerConfig: router));
await $(AppBarPage.getStartedBtn)
.tap(settleTimeout: TimeConstants.long.duration);
.tap(settleTimeout: Time.long.duration);
await OnboardingPage.closeBtn($).tap();
expect($(OnboardingPage.registrationDialog), findsNothing);
},
Expand All @@ -76,7 +76,7 @@ void main() async {
(PatrolTester $) async {
await $.pumpWidgetAndSettle(App(routerConfig: router));
await $(AppBarPage.getStartedBtn)
.tap(settleTimeout: TimeConstants.long.duration);
.tap(settleTimeout: Time.long.duration);
await OnboardingPage.detailsPartGetStartedCreateNewBtn($).tap();
await OnboardingPage.onboardingScreenLooksAsExpected(
$,
Expand All @@ -90,7 +90,7 @@ void main() async {
(PatrolTester $) async {
await $.pumpWidgetAndSettle(App(routerConfig: router));
await $(AppBarPage.getStartedBtn)
.tap(settleTimeout: TimeConstants.long.duration);
.tap(settleTimeout: Time.long.duration);
await OnboardingPage.detailsPartGetStartedCreateNewBtn($).tap();
await ($(OnboardingPage.backButton)).waitUntilVisible().tap();
await OnboardingPage.registrationInfoPanelLooksAsExpected(
Expand All @@ -105,7 +105,7 @@ void main() async {
(PatrolTester $) async {
await $.pumpWidgetAndSettle(App(routerConfig: router));
await $(AppBarPage.getStartedBtn)
.tap(settleTimeout: TimeConstants.long.duration);
.tap(settleTimeout: Time.long.duration);
await OnboardingPage.detailsPartGetStartedCreateNewBtn($).tap();
await OnboardingPage.detailsPartCreateKeychainBtn($).tap();
await OnboardingPage.onboardingScreenLooksAsExpected(
Expand All @@ -120,7 +120,7 @@ void main() async {
(PatrolTester $) async {
await $.pumpWidgetAndSettle(App(routerConfig: router));
await $(AppBarPage.getStartedBtn)
.tap(settleTimeout: TimeConstants.long.duration);
.tap(settleTimeout: Time.long.duration);
await OnboardingPage.detailsPartGetStartedCreateNewBtn($).tap();
await OnboardingPage.detailsPartCreateKeychainBtn($).tap();
await ($(OnboardingPage.backButton)).waitUntilVisible().tap();
Expand All @@ -135,7 +135,7 @@ void main() async {
(PatrolTester $) async {
await $.pumpWidgetAndSettle(App(routerConfig: router));
await $(AppBarPage.getStartedBtn)
.tap(settleTimeout: TimeConstants.long.duration);
.tap(settleTimeout: Time.long.duration);
await OnboardingPage.detailsPartGetStartedCreateNewBtn($).tap();
await OnboardingPage.detailsPartCreateKeychainBtn($).tap();
await $(OnboardingPage.nextButton).tap();
Expand All @@ -150,7 +150,7 @@ void main() async {
(PatrolTester $) async {
await $.pumpWidgetAndSettle(App(routerConfig: router));
await $(AppBarPage.getStartedBtn)
.tap(settleTimeout: TimeConstants.long.duration);
.tap(settleTimeout: Time.long.duration);
await OnboardingPage.detailsPartGetStartedCreateNewBtn($).tap();
await OnboardingPage.detailsPartCreateKeychainBtn($).tap();
await $(OnboardingPage.nextButton).tap();
Expand All @@ -167,7 +167,7 @@ void main() async {
(PatrolTester $) async {
await $.pumpWidgetAndSettle(App(routerConfig: router));
await $(AppBarPage.getStartedBtn)
.tap(settleTimeout: TimeConstants.long.duration);
.tap(settleTimeout: Time.long.duration);
await OnboardingPage.detailsPartGetStartedCreateNewBtn($).tap();
await OnboardingPage.detailsPartCreateKeychainBtn($).tap();
await $(OnboardingPage.nextButton).tap();
Expand All @@ -184,7 +184,7 @@ void main() async {
(PatrolTester $) async {
await $.pumpWidgetAndSettle(App(routerConfig: router));
await $(AppBarPage.getStartedBtn)
.tap(settleTimeout: TimeConstants.long.duration);
.tap(settleTimeout: Time.long.duration);
await OnboardingPage.detailsPartGetStartedCreateNewBtn($).tap();
await OnboardingPage.detailsPartCreateKeychainBtn($).tap();
await $(OnboardingPage.nextButton).tap();
Expand All @@ -202,7 +202,7 @@ void main() async {
(PatrolTester $) async {
await $.pumpWidgetAndSettle(App(routerConfig: router));
await $(AppBarPage.getStartedBtn)
.tap(settleTimeout: TimeConstants.long.duration);
.tap(settleTimeout: Time.long.duration);
await OnboardingPage.detailsPartGetStartedCreateNewBtn($).tap();
await OnboardingPage.detailsPartCreateKeychainBtn($).tap();
await $(OnboardingPage.nextButton).tap();
Expand All @@ -221,7 +221,7 @@ void main() async {
(PatrolTester $) async {
await $.pumpWidgetAndSettle(App(routerConfig: router));
await $(AppBarPage.getStartedBtn)
.tap(settleTimeout: TimeConstants.long.duration);
.tap(settleTimeout: Time.long.duration);
await OnboardingPage.detailsPartGetStartedCreateNewBtn($).tap();
await OnboardingPage.detailsPartCreateKeychainBtn($).tap();
await $(OnboardingPage.nextButton).tap();
Expand All @@ -243,7 +243,7 @@ void main() async {
(PatrolTester $) async {
await $.pumpWidgetAndSettle(App(routerConfig: router));
await $(AppBarPage.getStartedBtn)
.tap(settleTimeout: TimeConstants.long.duration);
.tap(settleTimeout: Time.long.duration);
await OnboardingPage.detailsPartGetStartedCreateNewBtn($).tap();
await OnboardingPage.detailsPartCreateKeychainBtn($).tap();
await $(OnboardingPage.nextButton).tap();
Expand All @@ -263,7 +263,7 @@ void main() async {
(PatrolTester $) async {
await $.pumpWidgetAndSettle(App(routerConfig: router));
await $(AppBarPage.getStartedBtn)
.tap(settleTimeout: TimeConstants.long.duration);
.tap(settleTimeout: Time.long.duration);
await OnboardingPage.detailsPartGetStartedCreateNewBtn($).tap();
await OnboardingPage.detailsPartCreateKeychainBtn($).tap();
await $(OnboardingPage.nextButton).tap();
Expand All @@ -285,7 +285,7 @@ void main() async {
(PatrolTester $) async {
await $.pumpWidgetAndSettle(App(routerConfig: router));
await $(AppBarPage.getStartedBtn)
.tap(settleTimeout: TimeConstants.long.duration);
.tap(settleTimeout: Time.long.duration);
await OnboardingPage.detailsPartGetStartedCreateNewBtn($).tap();
await OnboardingPage.detailsPartCreateKeychainBtn($).tap();
await $(OnboardingPage.nextButton).tap();
Expand All @@ -310,7 +310,7 @@ void main() async {
(PatrolTester $) async {
await $.pumpWidgetAndSettle(App(routerConfig: router));
await $(AppBarPage.getStartedBtn)
.tap(settleTimeout: TimeConstants.long.duration);
.tap(settleTimeout: Time.long.duration);
await OnboardingPage.detailsPartGetStartedCreateNewBtn($).tap();
await OnboardingPage.detailsPartCreateKeychainBtn($).tap();
await $(OnboardingPage.nextButton).tap();
Expand All @@ -336,7 +336,7 @@ void main() async {
(PatrolTester $) async {
await $.pumpWidgetAndSettle(App(routerConfig: router));
await $(AppBarPage.getStartedBtn)
.tap(settleTimeout: TimeConstants.long.duration);
.tap(settleTimeout: Time.long.duration);
await OnboardingPage.detailsPartGetStartedCreateNewBtn($).tap();
await OnboardingPage.detailsPartCreateKeychainBtn($).tap();
await $(OnboardingPage.nextButton).tap();
Expand All @@ -362,7 +362,7 @@ void main() async {
(PatrolTester $) async {
await $.pumpWidgetAndSettle(App(routerConfig: router));
await $(AppBarPage.getStartedBtn)
.tap(settleTimeout: TimeConstants.long.duration);
.tap(settleTimeout: Time.long.duration);
await OnboardingPage.detailsPartGetStartedCreateNewBtn($).tap();
await OnboardingPage.detailsPartCreateKeychainBtn($).tap();
await $(OnboardingPage.nextButton).tap();
Expand Down Expand Up @@ -390,7 +390,7 @@ void main() async {
(PatrolTester $) async {
await $.pumpWidgetAndSettle(App(routerConfig: router));
await $(AppBarPage.getStartedBtn)
.tap(settleTimeout: TimeConstants.long.duration);
.tap(settleTimeout: Time.long.duration);
await OnboardingPage.detailsPartGetStartedCreateNewBtn($).tap();
await OnboardingPage.detailsPartCreateKeychainBtn($).tap();
await $(OnboardingPage.nextButton).tap();
Expand All @@ -417,7 +417,7 @@ void main() async {
(PatrolTester $) async {
await $.pumpWidgetAndSettle(App(routerConfig: router));
await $(AppBarPage.getStartedBtn)
.tap(settleTimeout: TimeConstants.long.duration);
.tap(settleTimeout: Time.long.duration);
await OnboardingPage.detailsPartGetStartedCreateNewBtn($).tap();
await OnboardingPage.detailsPartCreateKeychainBtn($).tap();
await $(OnboardingPage.nextButton).tap();
Expand Down Expand Up @@ -445,7 +445,7 @@ void main() async {
(PatrolTester $) async {
await $.pumpWidgetAndSettle(App(routerConfig: router));
await $(AppBarPage.getStartedBtn)
.tap(settleTimeout: TimeConstants.long.duration);
.tap(settleTimeout: Time.long.duration);
await OnboardingPage.detailsPartGetStartedCreateNewBtn($).tap();
await OnboardingPage.detailsPartCreateKeychainBtn($).tap();
await $(OnboardingPage.nextButton).tap();
Expand Down Expand Up @@ -483,7 +483,7 @@ void main() async {
(PatrolTester $) async {
await $.pumpWidgetAndSettle(App(routerConfig: router));
await $(AppBarPage.getStartedBtn)
.tap(settleTimeout: TimeConstants.long.duration);
.tap(settleTimeout: Time.long.duration);
await OnboardingPage.detailsPartGetStartedCreateNewBtn($).tap();
await OnboardingPage.detailsPartCreateKeychainBtn($).tap();
await $(OnboardingPage.nextButton).tap();
Expand Down Expand Up @@ -517,7 +517,7 @@ void main() async {
(PatrolTester $) async {
await $.pumpWidgetAndSettle(App(routerConfig: router));
await $(AppBarPage.getStartedBtn)
.tap(settleTimeout: TimeConstants.long.duration);
.tap(settleTimeout: Time.long.duration);
await OnboardingPage.detailsPartGetStartedCreateNewBtn($).tap();
await OnboardingPage.detailsPartCreateKeychainBtn($).tap();
await $(OnboardingPage.nextButton).tap();
Expand Down Expand Up @@ -550,7 +550,7 @@ void main() async {
(PatrolTester $) async {
await $.pumpWidgetAndSettle(App(routerConfig: router));
await $(AppBarPage.getStartedBtn)
.tap(settleTimeout: TimeConstants.long.duration);
.tap(settleTimeout: Time.long.duration);
await OnboardingPage.detailsPartGetStartedCreateNewBtn($).tap();
await OnboardingPage.detailsPartCreateKeychainBtn($).tap();
await $(OnboardingPage.nextButton).tap();
Expand Down Expand Up @@ -583,7 +583,7 @@ void main() async {
(PatrolTester $) async {
await $.pumpWidgetAndSettle(App(routerConfig: router));
await $(AppBarPage.getStartedBtn)
.tap(settleTimeout: TimeConstants.long.duration);
.tap(settleTimeout: Time.long.duration);
await OnboardingPage.detailsPartGetStartedCreateNewBtn($).tap();
await OnboardingPage.detailsPartCreateKeychainBtn($).tap();
await $(OnboardingPage.nextButton).tap();
Expand Down Expand Up @@ -614,7 +614,7 @@ void main() async {
(PatrolTester $) async {
await $.pumpWidgetAndSettle(App(routerConfig: router));
await $(AppBarPage.getStartedBtn)
.tap(settleTimeout: TimeConstants.long.duration);
.tap(settleTimeout: Time.long.duration);
await OnboardingPage.detailsPartGetStartedCreateNewBtn($).tap();
await OnboardingPage.detailsPartCreateKeychainBtn($).tap();
await $(OnboardingPage.nextButton).tap();
Expand Down Expand Up @@ -644,7 +644,7 @@ void main() async {
(PatrolTester $) async {
await $.pumpWidgetAndSettle(App(routerConfig: router));
await $(AppBarPage.getStartedBtn)
.tap(settleTimeout: TimeConstants.long.duration);
.tap(settleTimeout: Time.long.duration);
await OnboardingPage.detailsPartGetStartedCreateNewBtn($).tap();
await OnboardingPage.detailsPartCreateKeychainBtn($).tap();
await $(OnboardingPage.nextButton).tap();
Expand Down Expand Up @@ -675,7 +675,7 @@ void main() async {
(PatrolTester $) async {
await $.pumpWidgetAndSettle(App(routerConfig: router));
await $(AppBarPage.getStartedBtn)
.tap(settleTimeout: TimeConstants.long.duration);
.tap(settleTimeout: Time.long.duration);
await OnboardingPage.detailsPartGetStartedCreateNewBtn($).tap();
await OnboardingPage.detailsPartCreateKeychainBtn($).tap();
await $(OnboardingPage.nextButton).tap();
Expand Down Expand Up @@ -707,7 +707,7 @@ void main() async {
(PatrolTester $) async {
await $.pumpWidgetAndSettle(App(routerConfig: router));
await $(AppBarPage.getStartedBtn)
.tap(settleTimeout: TimeConstants.long.duration);
.tap(settleTimeout: Time.long.duration);
await OnboardingPage.detailsPartGetStartedCreateNewBtn($).tap();
await OnboardingPage.detailsPartCreateKeychainBtn($).tap();
await $(OnboardingPage.nextButton).tap();
Expand Down Expand Up @@ -740,7 +740,7 @@ void main() async {
(PatrolTester $) async {
await $.pumpWidgetAndSettle(App(routerConfig: router));
await $(AppBarPage.getStartedBtn)
.tap(settleTimeout: TimeConstants.long.duration);
.tap(settleTimeout: Time.long.duration);
await OnboardingPage.detailsPartGetStartedRecoverBtn($).tap();
await OnboardingPage.onboardingScreenLooksAsExpected(
$,
Expand All @@ -754,7 +754,7 @@ void main() async {
(PatrolTester $) async {
await $.pumpWidgetAndSettle(App(routerConfig: router));
await $(AppBarPage.getStartedBtn)
.tap(settleTimeout: TimeConstants.long.duration);
.tap(settleTimeout: Time.long.duration);
await OnboardingPage.detailsPartGetStartedRecoverBtn($).tap();
await ($(OnboardingPage.backButton)).waitUntilVisible().tap();
await OnboardingPage.onboardingScreenLooksAsExpected(
Expand All @@ -771,8 +771,7 @@ void main() async {
'visitor - restore - keychain choice screen looks OK',
(PatrolTester $) async {
await $.pumpWidgetAndSettle(App(routerConfig: router));
await $(AppBarPage.getStartedBtn)
.tap(settleTimeout: TimeConstants.long.duration);
await $(AppBarPage.getStartedBtn).tap(settleTimeout: Time.long.duration);
await OnboardingPage.detailsPartGetStartedRecoverBtn($).tap();
await OnboardingPage.onboardingScreenLooksAsExpected(
$,
Expand Down
Loading

0 comments on commit ea0b1cc

Please sign in to comment.