Skip to content

Commit 91974fe

Browse files
authored
RNNav iOS 18 Compatibility #7990 (#8132)
* RNNav iOS 18 Compatibility #7990 * update missing device * device update * update for Orientation test - better implementation of setOrientation
1 parent 74599a1 commit 91974fe

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

e2e/Orientation.test.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ describe.e2e(':ios: orientation', () => {
1212
await elementById(TestIDs.SHOW_ORIENTATION_SCREEN).tap();
1313
});
1414

15+
afterEach(() => {
16+
device.setOrientation('portrait');
17+
});
18+
1519
it('landscape and portrait array', async () => {
1620
await elementById(TestIDs.LANDSCAPE_PORTRAIT_ORIENTATION_BTN).tap();
1721
await expect(element(by.id(TestIDs.PORTRAIT_ELEMENT))).toBeVisible();
@@ -40,6 +44,8 @@ describe.e2e(':ios: orientation', () => {
4044
await expect(element(by.id(TestIDs.LANDSCAPE_ELEMENT))).toBeVisible();
4145
await device.setOrientation('portrait');
4246
await expect(element(by.id(TestIDs.LANDSCAPE_ELEMENT))).toBeVisible();
47+
await device.setOrientation('landscape');
48+
await expect(element(by.id(TestIDs.LANDSCAPE_ELEMENT))).toBeVisible();
4349
await elementById(TestIDs.DISMISS_BTN).tap();
4450
});
4551
});

0 commit comments

Comments
 (0)