Skip to content

Commit 87c3388

Browse files
author
Dimitar Todorov
committed
Fix: android test - update to api 24
1 parent 3c0ed50 commit 87c3388

File tree

5 files changed

+34
-10
lines changed

5 files changed

+34
-10
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ matrix:
161161
script:
162162
- npm i -g appium
163163
- cd demo && npm i
164-
- travis_wait travis_retry npm run e2e -- --runType android23 --sauceLab --appPath $ANDROID_PACKAGE_JS
164+
- travis_wait travis_retry npm run e2e -- --runType android24 --sauceLab --appPath $ANDROID_PACKAGE_JS
165165
- os: linux
166166
env:
167167
- Android="24"
@@ -172,7 +172,7 @@ matrix:
172172
script:
173173
- npm i -g appium
174174
- cd demo-vue && npm i
175-
- travis_wait travis_retry npm run e2e -- --runType android23 --sauceLab --appPath $ANDROID_PACKAGE_VUE
175+
- travis_wait travis_retry npm run e2e -- --runType android24 --sauceLab --appPath $ANDROID_PACKAGE_VUE
176176
- os: linux
177177
env:
178178
- iOS="12.0"

demo-vue/e2e/config/appium.capabilities.json

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,17 @@
2424
"platformName": "Android",
2525
"platformVersion": "7.0",
2626
"deviceName": "Android GoogleAPI Emulator",
27-
"appium-version": "1.9.1",
27+
"appiumVersion": "1.9.1",
2828
"noReset": true,
29-
"lt": 60000,
30-
"newCommandTimeout": 720,
31-
"fullReset": false,
32-
"idleTimeout": 120,
33-
"automationName": "Appium"
29+
"app": ""
30+
},
31+
"android24.local": {
32+
"platformName": "Android",
33+
"platformVersion": "7.0",
34+
"deviceName": "Emulator-Api24-Default",
35+
"avd": "Emulator-Api24-Default",
36+
"appiumVersion": "1.9.1",
37+
"noReset": true
3438
},
3539
"sim11iPhone6": {
3640
"platformName": "iOS",

demo-vue/e2e/test.e2e.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ describe("Imagepicker", async function () {
6363

6464
if (isSauceRun && imagesFolder) {
6565
await imagesFolder.click();
66+
let dcimFolder = await driver.findElementByText("DCIM", SearchOptions.contains);
67+
await dcimFolder.click();
6668
imagesFolder = await driver.findElementByClassName(driver.locators.image);
6769
await imagesFolder.click();
6870
}

demo/e2e/config/appium.capabilities.json

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"android23.local": {
33
"platformName": "Android",
44
"platformVersion": "6.0",
5-
"deviceName": "Emulator_Api23_Default",
6-
"avd": "Emulator_Api23_Default",
5+
"deviceName": "Emulator-Api23-Default",
6+
"avd": "Emulator-Api23-Default",
77
"noReset": true
88
},
99
"android23": {
@@ -13,6 +13,22 @@
1313
"appium-version": "1.7.1",
1414
"noReset": true
1515
},
16+
"android24": {
17+
"platformName": "Android",
18+
"platformVersion": "7.0",
19+
"deviceName": "Android GoogleAPI Emulator",
20+
"appiumVersion": "1.9.1",
21+
"noReset": true,
22+
"app": ""
23+
},
24+
"android24.local": {
25+
"platformName": "Android",
26+
"platformVersion": "7.0",
27+
"deviceName": "Emulator-Api24-Default",
28+
"avd": "Emulator-Api24-Default",
29+
"appiumVersion": "1.9.1",
30+
"noReset": true
31+
},
1632
"android25": {
1733
"platformName": "Android",
1834
"platformVersion": "7.1",

demo/e2e/test.e2e.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ describe("Imagepicker", async function () {
6464

6565
if (isSauceRun && imagesFolder) {
6666
await imagesFolder.click();
67+
let dcimFolder = await driver.findElementByText("DCIM", SearchOptions.contains);
68+
await dcimFolder.click();
6769
imagesFolder = await driver.findElementByClassName(driver.locators.image);
6870
await imagesFolder.click();
6971
}

0 commit comments

Comments
 (0)