Skip to content

Commit 6f30595

Browse files
tests: create smoke e2e tests
1 parent c4c461d commit 6f30595

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+144
-129
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1+
.DS_Store
12
.idea/
3+
.vscode
24
npm-debug.log
35
package-lock.json
46
node_modules
57
platforms/
68
app/tns_modules/
9+
e2e/reports
10+
test-results.xml

.travis.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ matrix:
5353
- "curl -u $SAUCE_USER:$SAUCE_KEY -X POST -H 'Content-Type: application/octet-stream' $ANDROID_SAUCE_STORAGE --data-binary @$ANDROID_PACKAGE_FOLDER/$ANDROID_PACKAGE"
5454
- os: osx
5555
env:
56-
- BuildiOS="10.3"
57-
- Xcode="8.3"
58-
osx_image: xcode8.3
56+
- BuildiOS="11"
57+
- Xcode="9.3"
58+
osx_image: xcode9.3
5959
language: node_js
6060
node_js: "8"
6161
jdk: oraclejdk8
@@ -73,17 +73,15 @@ matrix:
7373
script:
7474
- npm install -g appium
7575
- npm install
76-
- appium &
77-
- travis_retry npm run appium -- --runType=android23 --sauceLab=true --appPath=$ANDROID_PACKAGE
76+
- travis_retry npm run ci.android --appPath $ANDROID_PACKAGE
7877
- npm run deploy
7978
- os: linux
8079
env:
81-
- iOS="10"
80+
- iOS="11"
8281
language: node_js
8382
node_js: "8"
8483
script:
8584
- npm install -g appium
8685
- npm install
87-
- appium &
88-
- travis_wait travis_retry npm run appium -- --runType=ios-simulator103iPhone6 --sauceLab=true --appPath=$IOS_PACKAGE
86+
- travis_wait travis_retry npm run e2e.ios --appPath $IOS_PACKAGE
8987
- npm run deploy
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module.exports = {
22
template: `
33
<StackLayout class="m-20">
4-
<ActivityIndicator busy="true"/>
4+
<ActivityIndicator busy="true" automationText="ActivityIndicator" />
55
</StackLayout>
66
`
77
};

app/elements/components/DatePicker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module.exports = {
22
template: `
33
<StackLayout class="m-20">
4-
<DatePicker/>
4+
<DatePicker automationText="DatePicker" />
55
</StackLayout>
66
`
77
};

app/elements/components/Image.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module.exports = {
22
template: `
33
<GridLayout rows="auto" class="m-20">
4-
<Image src="res://icon" stretch="none"/>
4+
<Image src="res://icon" stretch="none" automationText="Image" />
55
</GridLayout>
66
`
77
};
File renamed without changes.

appium.capabilities.json renamed to e2e/config/appium.capabilities.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,15 @@
1313
"deviceName": "iPhone Simulator",
1414
"bundleId": "org.nativescript.nativescriptvueuitests",
1515
"app": ""
16+
},
17+
"sim.iPhone8.iOS11.3": {
18+
"platformName": "iOS",
19+
"platformVersion": "11.3",
20+
"deviceName": "iPhone 8",
21+
"appiumVersion": "1.8.1",
22+
"bundleId": "org.nativescript.nativescriptvueuitests",
23+
"noReset": true,
24+
"fullReset": false,
25+
"app": ""
1626
}
1727
}

e2e/config/mocha.opts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
--timeout 800000
2+
--recursive e2e
3+
--reporter mocha-multi
4+
--reporter-options spec=-,mocha-junit-reporter=test-results.xml

e2e/resources/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)