From 65235bfc5abf502a01b3b47d806c9242ee75a2cf Mon Sep 17 00:00:00 2001 From: Asaf Korem Date: Sun, 22 Sep 2024 09:51:03 +0300 Subject: [PATCH] test(e2e): update view-hierarchy test to Sanity. --- detox/test/e2e/06.device.view-hierarchy.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/detox/test/e2e/06.device.view-hierarchy.test.js b/detox/test/e2e/06.device.view-hierarchy.test.js index 58deccb26e..d9998b84de 100644 --- a/detox/test/e2e/06.device.view-hierarchy.test.js +++ b/detox/test/e2e/06.device.view-hierarchy.test.js @@ -10,13 +10,13 @@ describe('generate view hierarchy', () => { }); it('generateViewHierarchyXml() - should generate a valid view hierarchy XML without injected test-ids', async () => { - await element(by.text('Actions')).tap(); + await element(by.text('Sanity')).tap(); const hierarchy = await device.generateViewHierarchyXml(); await expectViewHierarchySnapshotToMatch(hierarchy, `view-hierarchy-without-test-id-injection`); }); it('generateViewHierarchyXml(true) - should generate a valid view hierarchy XML with injected test-ids', async () => { - await element(by.text('Actions')).tap(); + await element(by.text('Sanity')).tap(); const hierarchy = await device.generateViewHierarchyXml(true); await expectViewHierarchySnapshotToMatch(hierarchy, `view-hierarchy-with-test-id-injection`); });