diff --git a/.gitignore b/.gitignore index e31828c..5411c96 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +.idea/ package-lock.json node_modules platforms/ diff --git a/.travis.yml b/.travis.yml index 1a44027..34a3d2b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -49,7 +49,7 @@ matrix: jdk: oraclejdk8 before_install: nvm install 8.6.0 script: - - npm run ci.android.build + - npm run android.build - "curl -u $SAUCE_USER:$SAUCE_KEY -X POST -H 'Content-Type: application/octet-stream' $ANDROID_SAUCE_STORAGE --data-binary @$ANDROID_PACKAGE_FOLDER/$ANDROID_PACKAGE" - os: osx env: @@ -60,7 +60,7 @@ matrix: node_js: "8" jdk: oraclejdk8 script: - - npm run ci.ios.build + - npm run ios.build - cd $IOS_PACKAGE_FOLDER && zip -r $IOS_PACKAGE nativescriptvueuitests.app/ &> /dev/null - echo $SAUCE_USER:$SAUCE_KEY - "curl -u $SAUCE_USER:$SAUCE_KEY -X POST -H 'Content-Type: application/octet-stream' $IOS_SAUCE_STORAGE --data-binary @$IOS_PACKAGE_FOLDER/$IOS_PACKAGE" diff --git a/README.md b/README.md new file mode 100644 index 0000000..0b13651 --- /dev/null +++ b/README.md @@ -0,0 +1,22 @@ +# NativeScript-Vue UI tests +This project uses Appium to test Vue UI components, and also serves as a source for the +component screenshots at [nativescript-vue.org](https://nativescript-vue.org/). + +## System requirements +* Node 7.6 or higher (for async function support). +* The [Appium](http://appium.io/) client. Just download and install the latest [from GitHub](https://github.com/appium/appium-desktop/releases/latest). + +## Running the tests locally +Start Appium, or you'll receive an error `127.0.0.1` can't be reached. + +### Android +```bash +npm run android.build +npm run android.screenshots +``` + +### iOS +```bash +npm run ios.build +npm run ios.screenshots +``` diff --git a/app/app.css b/app/app.css new file mode 100644 index 0000000..339b78b --- /dev/null +++ b/app/app.css @@ -0,0 +1,24 @@ +.m-5 { + margin: 5; +} + +.m-15 { + margin: 15; +} + +.m-20 { + margin: 20; +} + +.home-list Button { + border-width: 1; + border-color: #3e495c; + border-radius: 4; + margin: 6; + font-size: 14; + text-transform: none; + height: 34; + padding: 4 8; + color: #fff; + background-color: #52617a; +} \ No newline at end of file diff --git a/app/app.js b/app/app.js index ea8d18b..55e1440 100644 --- a/app/app.js +++ b/app/app.js @@ -88,31 +88,29 @@ new Vue({ component: () => require('./elements/dialogs/Confirm') }, { - name: 'LoginDialog', - component: () => require('./elements/dialogs/Login') + name: 'LoginDialog', + component: () => require('./elements/dialogs/Login') }, { - name: 'PromptDialog', - component: () => require('./elements/dialogs/Prompt') + name: 'PromptDialog', + component: () => require('./elements/dialogs/Prompt') }, ] }, methods: { - showElement(e) { - const element = e.item; + showElement(element) { this.$navigateTo(element.component()) } }, template: ` - - - - + + +