Skip to content

Commit

Permalink
test(e2e): update view-hierarchy test to Sanity.
Browse files Browse the repository at this point in the history
  • Loading branch information
asafkorem committed Sep 22, 2024
1 parent b9a64a5 commit 65235bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions detox/test/e2e/06.device.view-hierarchy.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`);
});
Expand Down

0 comments on commit 65235bf

Please sign in to comment.