couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From robertkowal...@apache.org
Subject fauxton commit: updated refs/heads/master to a03be3c
Date Thu, 02 Apr 2015 11:37:18 GMT
Repository: couchdb-fauxton
Updated Branches:
  refs/heads/master f183176e3 -> a03be3c54


tests: fix nightwatch test

`.scrollIntoView` is not a jQuery method

PR: #355
PR-URL: https://github.com/apache/couchdb-fauxton/pull/355
Reviewed-By: Robert Kowalski <rok@kowalski.gd>


Project: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/commit/a03be3c5
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/tree/a03be3c5
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/diff/a03be3c5

Branch: refs/heads/master
Commit: a03be3c548e189a5c319815eece17c5d5072d38a
Parents: f183176
Author: michellephung@gmail.com <michellephung@gmail.com>
Authored: Wed Apr 1 17:21:05 2015 -0400
Committer: Robert Kowalski <robertkowalski@apache.org>
Committed: Thu Apr 2 13:38:03 2015 +0200

----------------------------------------------------------------------
 app/addons/documents/tests/nightwatch/viewEdit.js | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/a03be3c5/app/addons/documents/tests/nightwatch/viewEdit.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/tests/nightwatch/viewEdit.js b/app/addons/documents/tests/nightwatch/viewEdit.js
index 2a187fc..a0ef94e 100644
--- a/app/addons/documents/tests/nightwatch/viewEdit.js
+++ b/app/addons/documents/tests/nightwatch/viewEdit.js
@@ -80,11 +80,11 @@ module.exports = {
         var editor = ace.edit("map-function");\
         editor.getSession().setValue("function (doc) { emit(\'newstub\', 2); }");\
       ')
-      .execute('$("button.save").scrollIntoView();')
-      .clickWhenVisible('button.btn-success.save', waitTime, false)
-      .waitForElementVisible('.global-notification', waitTime, false)
-      .waitForElementNotVisible('.global-notification', waitTime, false)
-      .assert.containsText('.prettyprint', '40')
+      .execute('$("button.save")[0].scrollIntoView();')
+      .clickWhenVisible('button.save', waitTime, false)
+      .waitForAttribute('.prettyprint', 'textContent', function (docContents) {
+        return (/40/).test(docContents);
+      })
     .end();
   }
 };


Mime
View raw message