From 2b48652774346f87182cb49c16b560e0a92ab272 Mon Sep 17 00:00:00 2001 From: Onur Temizkan Date: Tue, 5 Aug 2025 12:52:20 +0100 Subject: [PATCH] fix(tests): Fix Expo and React Native E2E test flakes --- e2e-tests/tests/expo.test.ts | 8 ++++++-- e2e-tests/tests/react-native.test.ts | 4 +++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/e2e-tests/tests/expo.test.ts b/e2e-tests/tests/expo.test.ts index 767be5eab..cf0ed2078 100644 --- a/e2e-tests/tests/expo.test.ts +++ b/e2e-tests/tests/expo.test.ts @@ -30,7 +30,10 @@ describe('Expo', () => { // Selecting `yarn` as the package manager [KEYS.DOWN, KEYS.DOWN, KEYS.ENTER], 'Do you want to enable Session Replay to help debug issues? (See https://docs.sentry.io/platforms/react-native/session-replay/)', - )); + ), + { + timeout: 240_000, + }); const feedbackWidgetPrompted = sessionReplayPrompted && (await wizardInstance.sendStdinAndWaitForOutput( @@ -38,7 +41,8 @@ describe('Expo', () => { [KEYS.ENTER], 'Do you want to enable the Feedback Widget to collect feedback from your users? (See https://docs.sentry.io/platforms/react-native/user-feedback/)', )); - const logsPrompted = + + const logsPrompted = feedbackWidgetPrompted && (await wizardInstance.sendStdinAndWaitForOutput( // Enable feedback widget diff --git a/e2e-tests/tests/react-native.test.ts b/e2e-tests/tests/react-native.test.ts index 7f2137b7d..b909467d6 100644 --- a/e2e-tests/tests/react-native.test.ts +++ b/e2e-tests/tests/react-native.test.ts @@ -31,7 +31,9 @@ describe('ReactNative', () => { // Selecting `yarn` as the package manager [KEYS.DOWN, KEYS.DOWN, KEYS.ENTER], 'Do you want to enable Session Replay to help debug issues? (See https://docs.sentry.io/platforms/react-native/session-replay/)', - )); + ), { + timeout: 240_000, + }); const feedbackWidgetPrompted = sessionReplayPrompted &&