Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions e2e/Orientation.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ describe.e2e(':ios: orientation', () => {
await elementById(TestIDs.SHOW_ORIENTATION_SCREEN).tap();
});

afterEach(() => {
device.setOrientation('portrait');
});

it('landscape and portrait array', async () => {
await elementById(TestIDs.LANDSCAPE_PORTRAIT_ORIENTATION_BTN).tap();
await expect(element(by.id(TestIDs.PORTRAIT_ELEMENT))).toBeVisible();
Expand Down Expand Up @@ -40,6 +44,8 @@ describe.e2e(':ios: orientation', () => {
await expect(element(by.id(TestIDs.LANDSCAPE_ELEMENT))).toBeVisible();
await device.setOrientation('portrait');
await expect(element(by.id(TestIDs.LANDSCAPE_ELEMENT))).toBeVisible();
await device.setOrientation('landscape');
await expect(element(by.id(TestIDs.LANDSCAPE_ELEMENT))).toBeVisible();
await elementById(TestIDs.DISMISS_BTN).tap();
});
});