-
Notifications
You must be signed in to change notification settings - Fork 20
/
android-test.js
42 lines (36 loc) · 1.05 KB
/
android-test.js
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
describe("Proverbial APK", () => {
it("Changes color", async () => {
var color = await $("id=color");
await color.waitForDisplayed({ timeout: 30000 });
await color.click();
await color.click();
});
it("Changes text", async () => {
var text = await $("id=Text");
await text.waitForDisplayed({ timeout: 30000 });
await text.click();
});
it("Toast", async () => {
var toast = await $("id=toast");
await toast.waitForDisplayed({ timeout: 30000 });
await toast.click();
});
it("Notification", async () => {
var nf = await $("id=notification");
await nf.waitForDisplayed({ timeout: 30000 });
await nf.click();
});
it("Geolocation", async () => {
var geo = await $("id=geoLocation");
await geo.waitForDisplayed({ timeout: 30000 });
await geo.click();
await driver.back();
});
it("SpeedTest", async () => {
var st = await $("id=speedTest");
await st.waitForDisplayed({ timeout: 30000 });
await st.click();
await browser.pause(10000);
await driver.back();
});
});