|
Hey all, I have the following test: UITest(
'Given the user is on the notification screen '
'when the user taps the logout button '
'then the user is logged out',
($) async {
await startApp($);
await $('Acceptance').tap();
await $(Checkbox).tap();
await $(policyContinueButtonKey).tap();
await $(welcomeSignInButtonKey).tap();
await $(PremiseCard).tap();
expect($(skipNotificationsButtonKey), findsOneWidget);
await $('Uitloggen').tap();
await $('Nee').tap();
await $('Uitloggen').tap();
await $('Ja').tap();
await $.waitUntilVisible($(WelcomeScreen));
},
);
}UITest consist of the following: void UITest(
String description,
PatrolTesterCallback callback,
) {
patrolTest(
description,
config: testConfig,
nativeAutomation: true,
callback,
);
}testConfig contains the following: const testConfig = PatrolTesterConfig(
settlePolicy: SettlePolicy.trySettle,
settleTimeout: Duration(seconds: 20),
existsTimeout: Duration(seconds: 20),
visibleTimeout: Duration(seconds: 20),
);When I run the test on Firebase, the tests run slower then running on our own machine. When Does expect need a separate timeout to be configured somewhere? I could solve it by using a await $(skipNotificationsButtonKey).waitUntilVisible();
expect($(skipNotificationsButtonKey), findsOneWidget); |
Answered by
cambiph
Sep 20, 2023
Replies: 1 comment
|
I just found the solution, you can set timeout via void UITest(
String description,
PatrolTesterCallback callback,
) {
patrolTest(
description,
config: testConfig,
nativeAutomation: true,
timeout: const Timeout(Duration(seconds: 20)),
callback,
);
} |
0 replies
Answer selected by
cambiph
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I just found the solution, you can set timeout via
Patroltestso this makes the following: