-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
13 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,9 +40,11 @@ void main() { | |
final continueBtn = $.tester.widget<Button>($(Button)); | ||
expect(continueBtn.disabled, true); | ||
|
||
await $(CTextField).enterText("[email protected]"); | ||
|
||
// check if payment is available or not | ||
await $.tester.enterText($(CTextField), '[email protected]'); | ||
await $.pump(const Duration(seconds: 1)); | ||
FocusManager.instance.primaryFocus?.unfocus(); | ||
await $.pump(const Duration(seconds: 1)); | ||
// // check if payment is available or not | ||
final stripeFound = $.tester.any(find.byTooltip(Providers.stripe.name)); | ||
if (stripeFound) { | ||
// Check if continue button is disabled | ||
|
@@ -58,30 +60,31 @@ void main() { | |
expect($(AppWebView), findsOneWidget); | ||
expect($(AppWebView).visible, true); | ||
} | ||
|
||
// go back | ||
await $(IconButton).tap(); | ||
await $.pump(const Duration(seconds: 1)); | ||
await $.tester.tap($(IconButton)); | ||
await $.pump(const Duration(seconds: 1)); | ||
await $.pump(const Duration(seconds: 1)); | ||
} | ||
FocusManager.instance.primaryFocus?.unfocus(); | ||
await $.pump(const Duration(seconds: 1)); | ||
|
||
/// Check out flow for shepherd | ||
final shepherdFound = | ||
$.tester.any(find.byTooltip(Providers.shepherd.name)); | ||
if (shepherdFound) { | ||
final shepherdProvider = find.byTooltip(Providers.shepherd.name); | ||
await $.tester.tap(shepherdProvider); | ||
await $.pump(const Duration(seconds: 1)); | ||
await $.tester.tap($(Button)); | ||
await $.pumpAndTrySettle(); | ||
await $.pumpAndSettle(); | ||
|
||
expect($(AppWebView), findsOneWidget); | ||
expect($(InAppWebView), findsOneWidget); | ||
|
||
await $.pump(const Duration(seconds: 1)); | ||
await $.tester.tap($(IconButton)); | ||
await $.pump(const Duration(seconds: 1)); | ||
await $.pump(const Duration(seconds: 1)); | ||
} | ||
FocusManager.instance.primaryFocus?.unfocus(); | ||
|
||
/// Check out flow for froPay | ||
final froPayFound = $.tester.any(find.byTooltip(Providers.fropay.name)); | ||
if (froPayFound) { | ||
|