diff --git a/packages/rn-tester/.maestro/button.yml b/packages/rn-tester/.maestro/button.yml index 7c0caa0b846..865b2c34511 100644 --- a/packages/rn-tester/.maestro/button.yml +++ b/packages/rn-tester/.maestro/button.yml @@ -1,7 +1,11 @@ appId: ${APP_ID} # iOS: com.meta.RNTester.localDevelopment | Android: com.facebook.react.uiapp --- - launchApp -- assertVisible: 'Components' +# Wait for the JS bundle to render the landing screen instead of asserting +# immediately, which races app cold start on CI. +- extendedWaitUntil: + visible: 'Components' + timeout: 30000 - scrollUntilVisible: element: id: 'Button' diff --git a/packages/rn-tester/.maestro/flatlist.yml b/packages/rn-tester/.maestro/flatlist.yml index ec75f6ccfb1..0915de4f6c0 100644 --- a/packages/rn-tester/.maestro/flatlist.yml +++ b/packages/rn-tester/.maestro/flatlist.yml @@ -1,7 +1,11 @@ appId: ${APP_ID} # iOS: com.meta.RNTester.localDevelopment | Android: com.facebook.react.uiapp --- - launchApp -- assertVisible: 'Components' +# Wait for the JS bundle to render the landing screen instead of asserting +# immediately, which races app cold start on CI. +- extendedWaitUntil: + visible: 'Components' + timeout: 30000 - scrollUntilVisible: element: id: 'Flatlist' diff --git a/packages/rn-tester/.maestro/helpers/launch-app-and-search.yml b/packages/rn-tester/.maestro/helpers/launch-app-and-search.yml index b6fca0b4990..d9463c0908a 100644 --- a/packages/rn-tester/.maestro/helpers/launch-app-and-search.yml +++ b/packages/rn-tester/.maestro/helpers/launch-app-and-search.yml @@ -1,5 +1,9 @@ appId: ${APP_ID} # iOS: com.meta.RNTester.localDevelopment | Android: com.facebook.react.uiapp --- - launchApp -- assertVisible: 'Components' +# Wait for the JS bundle to render the landing screen instead of asserting +# immediately, which races app cold start on CI. +- extendedWaitUntil: + visible: 'Components' + timeout: 30000 - runFlow: ./search.yml diff --git a/packages/rn-tester/.maestro/legacy-native-module.yml b/packages/rn-tester/.maestro/legacy-native-module.yml index 1d81fd734c8..e68fbaa30ed 100644 --- a/packages/rn-tester/.maestro/legacy-native-module.yml +++ b/packages/rn-tester/.maestro/legacy-native-module.yml @@ -1,8 +1,12 @@ appId: ${APP_ID} # iOS: com.meta.RNTester.localDevelopment | Android: com.facebook.react.uiapp --- - launchApp -- assertVisible: - text: 'APIs' +# Wait for the JS bundle to render the landing screen instead of asserting +# immediately, which races app cold start on CI. +- extendedWaitUntil: + visible: + text: 'APIs' + timeout: 30000 - tapOn: id: 'apis-tab' - runFlow: ./helpers/search.yml diff --git a/packages/rn-tester/.maestro/modal.yml b/packages/rn-tester/.maestro/modal.yml index e0e2de4ef3c..e3b7bef5388 100644 --- a/packages/rn-tester/.maestro/modal.yml +++ b/packages/rn-tester/.maestro/modal.yml @@ -1,7 +1,11 @@ appId: ${APP_ID} # iOS: com.meta.RNTester.localDevelopment | Android: com.facebook.react.uiapp --- - launchApp -- assertVisible: 'Components' +# Wait for the JS bundle to render the landing screen instead of asserting +# immediately, which races app cold start on CI. +- extendedWaitUntil: + visible: 'Components' + timeout: 30000 - scrollUntilVisible: element: id: 'Modal'