Skip to content

Commit

Permalink
test(e2e): update view-hierarchy snapshots.
Browse files Browse the repository at this point in the history
  • Loading branch information
asafkorem committed Sep 21, 2024
1 parent 1479087 commit 3345ec1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 253 deletions.
3 changes: 2 additions & 1 deletion detox/test/e2e/06.device.view-hierarchy.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,16 @@ describe('generate view hierarchy', () => {

beforeEach(async () => {
await device.reloadReactNative();
await element(by.text('Actions')).tap();
});

it('generateViewHierarchyXml() - should generate a valid view hierarchy XML without injected test-ids', async () => {
await element(by.text('Actions')).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();
const hierarchy = await device.generateViewHierarchyXml(true);
await expectViewHierarchySnapshotToMatch(hierarchy, `view-hierarchy-with-test-id-injection`);
});
Expand Down

Large diffs are not rendered by default.

Loading

0 comments on commit 3345ec1

Please sign in to comment.