-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat/purge-volatile-data-after-roll-forward
- Loading branch information
Showing
14 changed files
with
315 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
catalyst_voices/apps/voices/integration_test/pageobject/overall_spaces_page.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
library dashboard_page; | ||
|
||
import 'package:catalyst_voices_models/catalyst_voices_models.dart'; | ||
import 'package:flutter/material.dart'; | ||
|
||
class OverallSpacesPage { | ||
static const guestShortcutBtn = Key('GuestShortcut'); | ||
static const visitorShortcutBtn = Key('VisitorShortcut'); | ||
static const userShortcutBtn = Key('UserShortcut'); | ||
static const spacesListView = Key('SpacesListView'); | ||
|
||
static Key spaceOverview(Space space) { | ||
return Key('SpaceOverview.${space.name}'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
catalyst_voices/apps/voices/integration_test/utils/selector_utils.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import 'package:flutter_test/flutter_test.dart'; | ||
import 'package:patrol_finders/patrol_finders.dart'; | ||
|
||
class SelectorUtils { | ||
static void isDisabled( | ||
PatrolTester $, | ||
PatrolFinder widget, { | ||
bool? reverse = false, | ||
}) { | ||
final widgetProps = $.tester.widget(widget).toString().split('(').last; | ||
final expectedState = reverse! ? 'enabled' : 'disabled'; | ||
expect( | ||
widgetProps.contains('disabled'), | ||
!reverse, | ||
reason: 'Expected $expectedState (${widget.description})', | ||
); | ||
} | ||
|
||
static void isEnabled(PatrolTester $, PatrolFinder widget) { | ||
isDisabled($, widget, reverse: true); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.