From 8cf27e8b6f112d646111ddaba0b5036cafac3299 Mon Sep 17 00:00:00 2001 From: poonamjain96 Date: Tue, 15 Oct 2024 08:29:47 -0700 Subject: [PATCH] Add test for Console.log measure in new-arch-examples (#47020) Summary: Part of this: https://github.com/facebook/react-native/issues/46757 Solves: - ME2E0005 ## Changelog: [ Internal ] [ Added ] - Add console.log measure test in new-arch-example Pull Request resolved: https://github.com/facebook/react-native/pull/47020 Test Plan: ``` yarn e2e-test-ios yarn e2e-test-android ``` Reviewed By: cortinico Differential Revision: D64397112 Pulled By: cipolleschi fbshipit-source-id: c9192d66065038528751e2e366f58158b06eb864 --- packages/rn-tester/.maestro/new-arch-examples.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/packages/rn-tester/.maestro/new-arch-examples.yml b/packages/rn-tester/.maestro/new-arch-examples.yml index bdb02b13bafb54..c554a45edfa75c 100644 --- a/packages/rn-tester/.maestro/new-arch-examples.yml +++ b/packages/rn-tester/.maestro/new-arch-examples.yml @@ -14,3 +14,14 @@ appId: ${APP_ID} # iOS: com.meta.RNTester.localDevelopment | Android: com.facebo - tapOn: "Change Background" - assertVisible: text: "HSBA: h: 0, s: 1, b: 1, a: 255" +- assertVisible: + text: "> Interop Layer Measurements <" +- assertVisible: + text: "measure x: 0, y: 0, width: 0, height: 0" +- tapOn: "Console.log Measure" +- assertNotVisible: + text: "measure x: 0, y: 0, width: 0, height: 0" +- assertNotVisible: + text: "InWindow x: 0, y: 0, width: 0, height: 0" +- assertNotVisible: + text: "InLayout x: 0, y: 0, width: 0, height: 0"