You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by ac...@apache.org on 2017/08/25 07:13:18 UTC
[17/18] incubator-weex git commit: * [test] bugfix index tc
* [test] bugfix index tc
Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/9d339284
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/9d339284
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/9d339284
Branch: refs/heads/0.16-dev
Commit: 9d339284c73a104d76d6a269f106bfc003741e49
Parents: 995bece
Author: gurisxie <27...@qq.com>
Authored: Fri Aug 25 14:38:29 2017 +0800
Committer: gurisxie <27...@qq.com>
Committed: Fri Aug 25 14:38:29 2017 +0800
----------------------------------------------------------------------
test/scripts/index.test.js | 19 +++----------------
1 file changed, 3 insertions(+), 16 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/9d339284/test/scripts/index.test.js
----------------------------------------------------------------------
diff --git a/test/scripts/index.test.js b/test/scripts/index.test.js
index 3fe93fb..3df2b6b 100644
--- a/test/scripts/index.test.js
+++ b/test/scripts/index.test.js
@@ -32,25 +32,15 @@ describe('weex mobile index', function () {
beforeEach(function () {
return util.init(driver)
.get(util.getPage('/index.js'))
+ .waitForElementByName('hello world.',util.getGETActionWaitTimeMills(),1000)
});
afterEach(function () {
return util.quit(driver);
})
-
- it('#1 Index', () => {
- return driver
- .waitForElementById('title',util.getGETActionWaitTimeMills(),1000)
- .text()
- .then((text)=>{
- assert.equal(text,'hello world.')
- })
- })
-
- it('#2 Click Button', () => {
+ it('#1 Click Button', () => {
return driver
- .waitForElementById('title',util.getGETActionWaitTimeMills(),1000)
.elementById('button')
.click()
.elementById('status')
@@ -60,9 +50,8 @@ describe('weex mobile index', function () {
})
})
- it('#3 Input Blur', () => {
+ it('#2 Input Blur', () => {
return driver
- .waitForElementById('title',util.getGETActionWaitTimeMills(),1000)
.elementById('input')
.click()
.elementById('button2')
@@ -73,6 +62,4 @@ describe('weex mobile index', function () {
assert.equal(text,'input blur.')
})
})
-
-
});