forked from webdriverio/appium-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.deep.link.navigation.spec.ts
44 lines (37 loc) · 1.42 KB
/
app.deep.link.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
44
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';
import { openDeepLinkUrl } from '../helpers/Utils';
describe('WebdriverIO and Appium, when navigating by deep link', () => {
beforeEach(() => {
TabBar.waitForTabBarShown();
});
it('should be able to open the webview', () => {
openDeepLinkUrl('webview');
WebViewScreen.waitForWebsiteLoaded();
});
it('should be able to open the login form screen', () => {
openDeepLinkUrl('login');
LoginScreen.waitForIsShown(true);
});
it('should be able to open the forms screen', () => {
openDeepLinkUrl('forms');
FormsScreen.waitForIsShown(true);
});
it('should be able to open the swipe screen', () => {
openDeepLinkUrl('swipe');
SwipeScreen.waitForIsShown(true);
});
it('should be able to open the drag and drop screen', () => {
openDeepLinkUrl('drag');
DragScreen.waitForIsShown(true);
});
it('should be able to open the home screen', () => {
openDeepLinkUrl('home');
HomeScreen.waitForIsShown(true);
});
});