-
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); |
Beta Was this translation helpful? Give feedback.
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,
);
} |
Beta Was this translation helpful? Give feedback.
I just found the solution, you can set timeout via
Patroltest
so this makes the following: