|
@@ -8,7 +8,7 @@ describe('orientation', () => {
|
8
|
8
|
|
9
|
9
|
beforeEach(async () => {
|
10
|
10
|
await device.relaunchApp();
|
11
|
|
- waitForDeviceToSettleAfterOrientationChangeAndroid = ms => new Promise(res => setTimeout(res, device.getPlatform() === 'ios' ? 0 : 10));
|
|
11
|
+ waitForDeviceToSettleAfterOrientationChangeAndroid = ms => new Promise(res => setTimeout(res, device.getPlatform() === 'ios' ? 0 : 150));
|
12
|
12
|
});
|
13
|
13
|
|
14
|
14
|
it('default allows all', async () => {
|
|
@@ -30,6 +30,7 @@ describe('orientation', () => {
|
30
|
30
|
await device.setOrientation('landscape');
|
31
|
31
|
await expect(element(by.id(testIDs.LANDSCAPE_ELEMENT))).toBeVisible();
|
32
|
32
|
await device.setOrientation('portrait');
|
|
33
|
+ waitForDeviceToSettleAfterOrientationChangeAndroid();
|
33
|
34
|
await expect(element(by.id(testIDs.PORTRAIT_ELEMENT))).toBeVisible();
|
34
|
35
|
await elementById(testIDs.DISMISS_BUTTON).tap();
|
35
|
36
|
});
|