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