From 1a2532b1fc32ec989e05576121b5e669697d29af Mon Sep 17 00:00:00 2001 From: Ahmed Bilal <127771428+ahmedbilal008@users.noreply.github.com> Date: Fri, 4 Oct 2024 06:02:13 -0700 Subject: [PATCH] Add Modal Testing to modal.yml (#46796) Summary: This pr is part of issue https://github.com/facebook/react-native/issues/46757 solving tasks [ME2E0001] and [ME2E0002]. ## Changelog: [ Internal ] [ Added ] - Add e2e test for modal Pull Request resolved: https://github.com/facebook/react-native/pull/46796 Test Plan: yarn e2e-test-ios yarn e2e-test-android Reviewed By: cortinico Differential Revision: D63829299 Pulled By: cipolleschi fbshipit-source-id: ff64d0babde8aea6e2586c2f69056a10533750f9 --- packages/rn-tester/.maestro/{start.yml => modal.yml} | 10 ++++++++++ 1 file changed, 10 insertions(+) rename packages/rn-tester/.maestro/{start.yml => modal.yml} (59%) diff --git a/packages/rn-tester/.maestro/start.yml b/packages/rn-tester/.maestro/modal.yml similarity index 59% rename from packages/rn-tester/.maestro/start.yml rename to packages/rn-tester/.maestro/modal.yml index bb90cf08b10..5fb489496b5 100644 --- a/packages/rn-tester/.maestro/start.yml +++ b/packages/rn-tester/.maestro/modal.yml @@ -9,3 +9,13 @@ appId: ${APP_ID} # iOS: com.meta.RNTester.localDevelopment | Android: com.facebo speed: 60 - tapOn: id: "Modal" +- assertVisible: + text: "Show Modal" +- tapOn: + text: "Show Modal" +- assertVisible: + text: "Close" +- tapOn: + text: "Close" +- assertVisible: + text: "Show Modal"