|
@@ -43,7 +43,7 @@ describe('application lifecycle test', () => {
|
43
|
43
|
it(':android: device orientation does not destroy activity', async () => {
|
44
|
44
|
await elementById(testIDs.PUSH_BUTTON).tap();
|
45
|
45
|
await expect(elementByLabel('Pushed Screen')).toBeVisible();
|
46
|
|
-
|
|
46
|
+
|
47
|
47
|
await device.setOrientation('landscape');
|
48
|
48
|
|
49
|
49
|
await expect(elementByLabel('Pushed Screen')).toBeVisible();
|
|
@@ -60,7 +60,7 @@ describe('application lifecycle test', () => {
|
60
|
60
|
await expect(elementByLabel('Pushed Screen')).toBeNotVisible();
|
61
|
61
|
await expect(elementByLabel('React Native Navigation!')).toBeVisible();
|
62
|
62
|
});
|
63
|
|
-
|
|
63
|
+
|
64
|
64
|
xit(':android: pressing menu opens dev menu', async () => {
|
65
|
65
|
if (!IS_RELEASE) {
|
66
|
66
|
Android.pressMenu();
|
|
@@ -101,12 +101,12 @@ describe('application lifecycle test', () => {
|
101
|
101
|
await expect(elementByLabel('Pushed Screen')).toBeVisible();
|
102
|
102
|
|
103
|
103
|
Android.executeShellCommand('am broadcast -a com.reactnativenavigation.broadcast.RELOAD');
|
104
|
|
-
|
|
104
|
+
|
105
|
105
|
await sleep(1000);
|
106
|
106
|
await expect(elementByLabel('React Native Navigation!')).toBeVisible();
|
107
|
107
|
}
|
108
|
108
|
});
|
109
|
|
-
|
|
109
|
+
|
110
|
110
|
async function togglePhonePermission() {
|
111
|
111
|
await sleep(700);
|
112
|
112
|
Android.revokePermission();
|
|
@@ -114,4 +114,4 @@ describe('application lifecycle test', () => {
|
114
|
114
|
Android.grantPermission();
|
115
|
115
|
await sleep(1000);
|
116
|
116
|
}
|
117
|
|
-});
|
|
117
|
+});
|