|
@@ -1,38 +0,0 @@
|
1
|
|
-xdescribe('app android', () => {
|
2
|
|
- beforeEach((done) => {
|
3
|
|
- global.simulator.relaunchApp(done);
|
4
|
|
- });
|
5
|
|
-
|
6
|
|
- it('shows welcome screen', () => {
|
7
|
|
- expect(elementByLabel('React Native Navigation!')).toBeVisible();
|
8
|
|
- });
|
9
|
|
-
|
10
|
|
- it('switch to tab based app, passProps and functions', () => {
|
11
|
|
- elementByLabel('Switch to tab based app').tap();
|
12
|
|
- expect(elementByLabel('This is tab 1')).toBeVisible();
|
13
|
|
- expect(elementByLabel('Hello from a function!')).toBeVisible();
|
14
|
|
- });
|
15
|
|
-
|
16
|
|
- it('push screen', () => {
|
17
|
|
- elementByLabel('Push').tap();
|
18
|
|
- expect(elementByLabel('Pushed screen')).toBeVisible();
|
19
|
|
- });
|
20
|
|
-
|
21
|
|
- xit('switch to tabs with side menus', () => {
|
22
|
|
- elementByLabel('Switch to tab based app with side menus').tap();
|
23
|
|
- elementByLabel('Switch to tab based app with side menus').swipeRight();
|
24
|
|
- expect(elementByLabel('This is a side menu screen')).toBeVisible();
|
25
|
|
- });
|
26
|
|
-
|
27
|
|
- it('screen lifecycle', () => {
|
28
|
|
- elementByLabel('Switch to lifecycle screen').tap();
|
29
|
|
- expect(elementByLabel('onStart!')).toBeVisible();
|
30
|
|
- elementByLabel('Push to test onStop').tap();
|
31
|
|
- expect(elementByLabel('Alert')).toBeVisible();
|
32
|
|
- expect(elementByLabel('onStop!')).toBeVisible();
|
33
|
|
- });
|
34
|
|
-});
|
35
|
|
-
|
36
|
|
-function elementByLabel(label) {
|
37
|
|
- return element(by.label(label));
|
38
|
|
-}
|