forked from webdriverio/appium-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.tab.bar.navigation.spec.ts
43 lines (36 loc) · 1.35 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';
import WebViewScreen from '../screenobjects/WebviewScreen';
import LoginScreen from '../screenobjects/LoginScreen';
import FormsScreen from '../screenobjects/FormsScreen';
import SwipeScreen from '../screenobjects/SwipeScreen';
import HomeScreen from '../screenobjects/HomeScreen';
import DragScreen from '../screenobjects/DragScreen';
describe('WebdriverIO and Appium, when using navigation through the tab bar', () => {
beforeEach(() => {
TabBar.waitForTabBarShown();
});
it('should be able to open the webview', () => {
TabBar.openWebView();
WebViewScreen.waitForWebsiteLoaded();
});
it('should be able to open the login form screen', () => {
TabBar.openLogin();
LoginScreen.waitForIsShown(true);
});
it('should be able to open the forms screen', () => {
TabBar.openForms();
FormsScreen.waitForIsShown(true);
});
it('should be able to open the swipe screen', () => {
TabBar.openSwipe();
SwipeScreen.waitForIsShown(true);
});
it('should be able to open the drag and drop screen', () => {
TabBar.openDrag();
DragScreen.waitForIsShown(true);
});
it('should be able to open the home screen', () => {
TabBar.openHome();
HomeScreen.waitForIsShown(true);
});
});