Skip to content

Commit 2b48652

Browse files
committed
fix(tests): Fix Expo and React Native E2E test flakes
1 parent 3cc1b13 commit 2b48652

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

e2e-tests/tests/expo.test.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,19 @@ describe('Expo', () => {
3030
// Selecting `yarn` as the package manager
3131
[KEYS.DOWN, KEYS.DOWN, KEYS.ENTER],
3232
'Do you want to enable Session Replay to help debug issues? (See https://docs.sentry.io/platforms/react-native/session-replay/)',
33-
));
33+
),
34+
{
35+
timeout: 240_000,
36+
});
3437
const feedbackWidgetPrompted =
3538
sessionReplayPrompted &&
3639
(await wizardInstance.sendStdinAndWaitForOutput(
3740
// Enable session replay
3841
[KEYS.ENTER],
3942
'Do you want to enable the Feedback Widget to collect feedback from your users? (See https://docs.sentry.io/platforms/react-native/user-feedback/)',
4043
));
41-
const logsPrompted =
44+
45+
const logsPrompted =
4246
feedbackWidgetPrompted &&
4347
(await wizardInstance.sendStdinAndWaitForOutput(
4448
// Enable feedback widget

e2e-tests/tests/react-native.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ describe('ReactNative', () => {
3131
// Selecting `yarn` as the package manager
3232
[KEYS.DOWN, KEYS.DOWN, KEYS.ENTER],
3333
'Do you want to enable Session Replay to help debug issues? (See https://docs.sentry.io/platforms/react-native/session-replay/)',
34-
));
34+
), {
35+
timeout: 240_000,
36+
});
3537

3638
const feedbackWidgetPrompted =
3739
sessionReplayPrompted &&

0 commit comments

Comments
 (0)