Daniel Zlotin 7 лет назад
Родитель
Сommit
2460ac3ded
1 измененных файлов: 14 добавлений и 15 удалений
  1. 14
    15
      playground/e2e/app.test.js

+ 14
- 15
playground/e2e/app.test.js Просмотреть файл

@@ -44,7 +44,7 @@ describe('screen stack', () => {
44 44
     elementByLabel('Pop').tap();
45 45
     expect(elementByLabel('React Native Navigation!')).toBeVisible();
46 46
   });
47
-  
47
+
48 48
   it('pop screen deep in the stack', () => {
49 49
     elementByLabel('Push').tap();
50 50
     expect(elementByLabel('Stack Position: 1')).toBeVisible();
@@ -57,24 +57,23 @@ describe('screen stack', () => {
57 57
   });
58 58
 });
59 59
 
60
-
61 60
 describe('modal', () => {
62 61
   beforeEach((done) => {
63 62
     global.simulator.relaunchApp(done);
64 63
   });
65
-  
64
+
66 65
   it('show modal', () => {
67 66
     elementByLabel('Show Modal').tap();
68 67
     expect(elementByLabel('Modal Screen')).toBeVisible();
69 68
   });
70
-  
69
+
71 70
   it('dismiss modal', () => {
72 71
     elementByLabel('Show Modal').tap();
73 72
     expect(elementByLabel('Modal Screen')).toBeVisible();
74 73
     elementByLabel('Dismiss Modal').tap();
75 74
     expect(elementByLabel('React Native Navigation!')).toBeVisible();
76 75
   });
77
-  
76
+
78 77
   it('show multiple modals', () => {
79 78
     elementByLabel('Show Modal').tap();
80 79
     expect(elementByLabel('Modal Stack Position: 1')).toBeVisible();
@@ -85,7 +84,7 @@ describe('modal', () => {
85 84
     elementByLabel('Dismiss Modal').tap();
86 85
     expect(elementByLabel('React Native Navigation!')).toBeVisible();
87 86
   });
88
-  
87
+
89 88
   it('dismiss unknown screen id', () => {
90 89
     elementByLabel('Show Modal').tap();
91 90
     expect(elementByLabel('Modal Stack Position: 1')).toBeVisible();
@@ -94,7 +93,7 @@ describe('modal', () => {
94 93
     elementByLabel('Dismiss Modal').tap();
95 94
     expect(elementByLabel('React Native Navigation!')).toBeVisible();
96 95
   });
97
-  
96
+
98 97
   it('dismiss modal by id which is not the top most', () => {
99 98
     elementByLabel('Show Modal').tap();
100 99
     expect(elementByLabel('Modal Stack Position: 1')).toBeVisible();
@@ -105,7 +104,7 @@ describe('modal', () => {
105 104
     elementByLabel('Dismiss Modal').tap();
106 105
     expect(elementByLabel('React Native Navigation!')).toBeVisible();
107 106
   });
108
-  
107
+
109 108
   it('dismiss all previous modals by id when they are below top presented modal', () => {
110 109
     elementByLabel('Show Modal').tap();
111 110
     expect(elementByLabel('Modal Stack Position: 1')).toBeVisible();
@@ -113,14 +112,14 @@ describe('modal', () => {
113 112
     expect(elementByLabel('Modal Stack Position: 2')).toBeVisible();
114 113
     elementByLabel('Show Modal').tap();
115 114
     expect(elementByLabel('Modal Stack Position: 3')).toBeVisible();
116
-    
115
+
117 116
     elementByLabel('Dismiss ALL Previous Modals').tap();
118 117
     expect(elementByLabel('Modal Stack Position: 3')).toBeVisible();
119
-    
118
+
120 119
     elementByLabel('Dismiss Modal').tap();
121 120
     expect(elementByLabel('React Native Navigation!')).toBeVisible();
122 121
   });
123
-  
122
+
124 123
   it('dismiss some modal by id deep in the stack', () => {
125 124
     elementByLabel('Show Modal').tap();
126 125
     expect(elementByLabel('Modal Stack Position: 1')).toBeVisible();
@@ -128,17 +127,17 @@ describe('modal', () => {
128 127
     expect(elementByLabel('Modal Stack Position: 2')).toBeVisible();
129 128
     elementByLabel('Show Modal').tap();
130 129
     expect(elementByLabel('Modal Stack Position: 3')).toBeVisible();
131
-    
130
+
132 131
     elementByLabel('Dismiss First In Stack').tap();
133 132
     expect(elementByLabel('Modal Stack Position: 3')).toBeVisible();
134
-    
133
+
135 134
     elementByLabel('Dismiss Modal').tap();
136 135
     expect(elementByLabel('Modal Stack Position: 2')).toBeVisible();
137
-    
136
+
138 137
     elementByLabel('Dismiss Modal').tap();
139 138
     expect(elementByLabel('React Native Navigation!')).toBeVisible();
140 139
   });
141
-  
140
+
142 141
   it('dismissAllModals', () => {
143 142
     elementByLabel('Show Modal').tap();
144 143
     expect(elementByLabel('Modal Stack Position: 1')).toBeVisible();