|
@@ -61,7 +61,7 @@ describe('app', () => {
|
61
|
61
|
elementByLabel('Dismiss Modal').tap();
|
62
|
62
|
expect(elementByLabel('React Native Navigation!')).toBeVisible();
|
63
|
63
|
});
|
64
|
|
-
|
|
64
|
+
|
65
|
65
|
it('dismiss unknown screen id', () => {
|
66
|
66
|
elementByLabel('Show Modal').tap();
|
67
|
67
|
expect(elementByLabel('Modal Stack Position: 1')).toBeVisible();
|
|
@@ -81,7 +81,7 @@ describe('app', () => {
|
81
|
81
|
elementByLabel('Dismiss Modal').tap();
|
82
|
82
|
expect(elementByLabel('React Native Navigation!')).toBeVisible();
|
83
|
83
|
});
|
84
|
|
-
|
|
84
|
+
|
85
|
85
|
it('dismiss all previous modals by id when they are below top presented modal', () => {
|
86
|
86
|
elementByLabel('Show Modal').tap();
|
87
|
87
|
expect(elementByLabel('Modal Stack Position: 1')).toBeVisible();
|
|
@@ -89,14 +89,14 @@ describe('app', () => {
|
89
|
89
|
expect(elementByLabel('Modal Stack Position: 2')).toBeVisible();
|
90
|
90
|
elementByLabel('Show Modal').tap();
|
91
|
91
|
expect(elementByLabel('Modal Stack Position: 3')).toBeVisible();
|
92
|
|
-
|
|
92
|
+
|
93
|
93
|
elementByLabel('Dismiss ALL Previous Modals').tap();
|
94
|
94
|
expect(elementByLabel('Modal Stack Position: 3')).toBeVisible();
|
95
|
|
-
|
|
95
|
+
|
96
|
96
|
elementByLabel('Dismiss Modal').tap();
|
97
|
97
|
expect(elementByLabel('React Native Navigation!')).toBeVisible();
|
98
|
98
|
});
|
99
|
|
-
|
|
99
|
+
|
100
|
100
|
it('dismiss some modal by id deep in the stack', () => {
|
101
|
101
|
elementByLabel('Show Modal').tap();
|
102
|
102
|
expect(elementByLabel('Modal Stack Position: 1')).toBeVisible();
|
|
@@ -104,16 +104,20 @@ describe('app', () => {
|
104
|
104
|
expect(elementByLabel('Modal Stack Position: 2')).toBeVisible();
|
105
|
105
|
elementByLabel('Show Modal').tap();
|
106
|
106
|
expect(elementByLabel('Modal Stack Position: 3')).toBeVisible();
|
107
|
|
-
|
|
107
|
+
|
108
|
108
|
elementByLabel('Dismiss First In Stack').tap();
|
109
|
109
|
expect(elementByLabel('Modal Stack Position: 3')).toBeVisible();
|
110
|
|
-
|
|
110
|
+
|
111
|
111
|
elementByLabel('Dismiss Modal').tap();
|
112
|
112
|
expect(elementByLabel('Modal Stack Position: 2')).toBeVisible();
|
113
|
|
-
|
|
113
|
+
|
114
|
114
|
elementByLabel('Dismiss Modal').tap();
|
115
|
115
|
expect(elementByLabel('React Native Navigation!')).toBeVisible();
|
116
|
116
|
});
|
|
117
|
+
|
|
118
|
+ xit('dismissAllModals', () => {
|
|
119
|
+ //
|
|
120
|
+ });
|
117
|
121
|
});
|
118
|
122
|
|
119
|
123
|
describe('reload app', () => {
|