-
-
Notifications
You must be signed in to change notification settings - Fork 263
/
app.tab.bar.navigation.spec.ts
43 lines (36 loc) · 1.49 KB
/
app.tab.bar.navigation.spec.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import TabBar from '../screenobjects/components/TabBar.js';
import WebViewScreen from '../screenobjects/WebviewScreen.js';
import LoginScreen from '../screenobjects/LoginScreen.js';
import FormsScreen from '../screenobjects/FormsScreen.js';
import SwipeScreen from '../screenobjects/SwipeScreen.js';
import HomeScreen from '../screenobjects/HomeScreen.js';
import DragScreen from '../screenobjects/DragScreen.js';
describe('WebdriverIO and Appium, when using navigation through the tab bar', () => {
beforeEach(async () => {
await TabBar.waitForTabBarShown();
});
it('should be able to open the webview', async () => {
await TabBar.openWebView();
await WebViewScreen.waitForWebsiteLoaded();
});
it('should be able to open the login form screen', async () => {
await TabBar.openLogin();
await LoginScreen.waitForIsShown(true);
});
it('should be able to open the forms screen', async () => {
await TabBar.openForms();
await FormsScreen.waitForIsShown(true);
});
it('should be able to open the swipe screen', async () => {
await TabBar.openSwipe();
await SwipeScreen.waitForIsShown(true);
});
it('should be able to open the drag and drop screen', async () => {
await TabBar.openDrag();
await DragScreen.waitForIsShown(true);
});
it('should be able to open the home screen', async () => {
await TabBar.openHome();
await HomeScreen.waitForIsShown(true);
});
});