You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by cx...@apache.org on 2017/08/25 12:13:42 UTC

[3/5] incubator-weex git commit: * [test] index tc add stable

* [test] index tc add stable


Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/0c4db4fb
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/0c4db4fb
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/0c4db4fb

Branch: refs/heads/0.16-dev
Commit: 0c4db4fb31773b2c0b6df7db9a8c17d297ebe7c3
Parents: 578f1e9
Author: gurisxie <27...@qq.com>
Authored: Fri Aug 25 17:51:09 2017 +0800
Committer: gurisxie <27...@qq.com>
Committed: Fri Aug 25 17:51:09 2017 +0800

----------------------------------------------------------------------
 test/scripts/index.test.js | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/0c4db4fb/test/scripts/index.test.js
----------------------------------------------------------------------
diff --git a/test/scripts/index.test.js b/test/scripts/index.test.js
index 3df2b6b..bf64d7c 100644
--- a/test/scripts/index.test.js
+++ b/test/scripts/index.test.js
@@ -41,9 +41,9 @@ describe('weex mobile index', function () {
 
   it('#1 Click Button', () => {
     return driver
-    .elementById('button')
+    .waitForElementById('button',util.getGETActionWaitTimeMills(),1000)
     .click()
-    .elementById('status')
+    .waitForElementById('status',util.getGETActionWaitTimeMills(),1000)
     .text()
     .then((text)=>{
       assert.equal(text,'btn click.')
@@ -52,11 +52,11 @@ describe('weex mobile index', function () {
 
   it('#2 Input Blur', () => {
     return driver
-    .elementById('input')
+    .waitForElementById('input',util.getGETActionWaitTimeMills(),1000)
     .click()
-    .elementById('button2')
+    .waitForElementById('button2',util.getGETActionWaitTimeMills(),1000)
     .click()
-    .elementById('status')
+    .waitForElementById('status',util.getGETActionWaitTimeMills(),1000)
     .text()
     .then((text)=>{
       assert.equal(text,'input blur.')