* [test] bug fix script on android
Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/386dbef7 Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/386dbef7 Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/386dbef7 Branch: refs/heads/0.16-dev Commit: 386dbef746115825c90ed84c5476b09377d1254b Parents: 5cbadf2 Author: gurisxie <279483...@qq.com> Authored: Thu Aug 10 10:22:36 2017 +0800 Committer: gurisxie <279483...@qq.com> Committed: Thu Aug 10 10:22:36 2017 +0800 ---------------------------------------------------------------------- ios/.gitignore | 1 + test/pages/components/input-event.vue | 2 +- test/pages/components/switch-event.vue | 2 +- test/scripts/components/input-event.test.js | 3 +-- test/scripts/components/switch-event.test.js | 6 +++--- 5 files changed, 7 insertions(+), 7 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/386dbef7/ios/.gitignore ---------------------------------------------------------------------- diff --git a/ios/.gitignore b/ios/.gitignore index 3d7104d..59dcf27 100644 --- a/ios/.gitignore +++ b/ios/.gitignore @@ -64,4 +64,5 @@ fastlane/screenshots # Created by https://www.gitignore.io/api/node *.gcno +.xcodecoverageignore http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/386dbef7/test/pages/components/input-event.vue ---------------------------------------------------------------------- diff --git a/test/pages/components/input-event.vue b/test/pages/components/input-event.vue index 2135963..deead5e 100644 --- a/test/pages/components/input-event.vue +++ b/test/pages/components/input-event.vue @@ -2,7 +2,7 @@ <div> <panel title = 'input-event' :padding-body='0'> <div> - <input class="input mr-base" type="text" placeholder="onchange" @change="eventChange"></input> + <input test-id="input-obj" class="input mr-base" type="text" placeholder="onchange" @change="eventChange"></input> </div> <panel title='æ ¡éªç»æï¼'> <text style="font-size:30px">{{resultTxt}}</text> http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/386dbef7/test/pages/components/switch-event.vue ---------------------------------------------------------------------- diff --git a/test/pages/components/switch-event.vue b/test/pages/components/switch-event.vue index a14991f..65bbf5a 100644 --- a/test/pages/components/switch-event.vue +++ b/test/pages/components/switch-event.vue @@ -2,7 +2,7 @@ <div> <panel title = 'switch-event' :padding-body='0'> <div style='flex-direction:row'> - <switch class="origin mr-base" @change="change"></switch> + <switch test-id="switch-obj" class="origin mr-base" @change="change"></switch> </div> <panel title='æ ¡éªç»æï¼'> <text style="font-size:30px">{{resultTxt}}</text> http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/386dbef7/test/scripts/components/input-event.test.js ---------------------------------------------------------------------- diff --git a/test/scripts/components/input-event.test.js b/test/scripts/components/input-event.test.js index 7a1868f..d7c71f4 100644 --- a/test/scripts/components/input-event.test.js +++ b/test/scripts/components/input-event.test.js @@ -7,7 +7,6 @@ var path = require('path'); var os = require('os'); var util = require("../util.js"); -var inputTag = 'XCUIElementTypeTextField'; var goal = 'input-event'; var interval = util.getGETActionWaitTimeMills(); @@ -27,7 +26,7 @@ describe('weex '+goal+' test', function () { it('#1 '+goal + ' event', () => { return driver - .waitForElementByClassName(inputTag, interval, 2000) + .waitForElementById("input-obj", interval, 2000) .sendKeys('testChange') .sleep(500) .sendKeys('\n') http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/386dbef7/test/scripts/components/switch-event.test.js ---------------------------------------------------------------------- diff --git a/test/scripts/components/switch-event.test.js b/test/scripts/components/switch-event.test.js index 93e1253..b5614f6 100644 --- a/test/scripts/components/switch-event.test.js +++ b/test/scripts/components/switch-event.test.js @@ -7,7 +7,7 @@ var path = require('path'); var os = require('os'); var util = require("../util.js"); -var switchTag = 'XCUIElementTypeSwitch'; +var switchTag = 'switch-obj'; var goal = 'switch-event'; var interval = util.getGETActionWaitTimeMills(); @@ -27,11 +27,11 @@ describe('weex '+goal+' test', function () { it('#1 '+goal + ' event', () => { return driver - .waitForElementByClassName(switchTag, interval, 2000) + .waitForElementById(switchTag, interval, 2000) .click() .waitForElementByName('change response:true', interval, 2000) - .waitForElementByClassName(switchTag, interval, 2000) + .waitForElementById(switchTag, interval, 2000) .click() .waitForElementByName('change response:false', interval, 2000) })