Repository: couchdb-fauxton
Updated Branches:
  refs/heads/master 79d5f320a -> 1e4921b2a


Fix tests that don't have a spinner

PR: #344
PR-URL: https://github.com/apache/couchdb-fauxton/pull/344
Reviewed-By: Robert Kowalski <[email protected]>


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

Branch: refs/heads/master
Commit: 1e4921b2a7ccfc3acecaa0aa209f8fd159cf50c4
Parents: 79d5f32
Author: Garren Smith <[email protected]>
Authored: Mon Mar 30 16:07:30 2015 +0200
Committer: Robert Kowalski <[email protected]>
Committed: Mon Mar 30 16:45:27 2015 +0200

----------------------------------------------------------------------
 app/addons/documents/tests/nightwatch/paginateAllDocs.js | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/1e4921b2/app/addons/documents/tests/nightwatch/paginateAllDocs.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/tests/nightwatch/paginateAllDocs.js 
b/app/addons/documents/tests/nightwatch/paginateAllDocs.js
index 5774034..7af1362 100644
--- a/app/addons/documents/tests/nightwatch/paginateAllDocs.js
+++ b/app/addons/documents/tests/nightwatch/paginateAllDocs.js
@@ -27,7 +27,7 @@ module.exports = {
       // hack to get select working by clicking on it and using keyboard to 
select
       // http://www.w3.org/TR/2012/WD-webdriver-20120710/
       .keys(['\uE013', '\uE006'])
-      .waitForElementNotPresent('.spinner', waitTime)
+      .waitForElementNotPresent('div[data-id="document_16"]', waitTime)
       .execute(function () {
         return $('.doc-row').length;
       }, function (result) {
@@ -50,12 +50,10 @@ module.exports = {
       .click('#select-per-page')
       // http://www.w3.org/TR/2012/WD-webdriver-20120710/
       .keys(['\uE013', '\uE006'])
-      .waitForElementNotPresent('.spinner', waitTime)
+      .waitForElementNotPresent('div[data-id="document_16"]', waitTime)
       .click('#next')
-      .waitForElementNotPresent('.spinner', waitTime)
       .waitForElementPresent('div[data-id="document_17"]', waitTime)
       .click('#previous')
-      .waitForElementNotPresent('.spinner', waitTime)
       .waitForElementPresent('div[data-id="document_1"]', waitTime)
       .end();
   },
@@ -74,13 +72,12 @@ module.exports = {
       .click('#select-per-page')
       // http://www.w3.org/TR/2012/WD-webdriver-20120710/
       .keys(['\uE013', '\uE006'])
-      .waitForElementNotPresent('.spinner', waitTime)
+      .waitForElementNotPresent('div[data-id="document_16"]', waitTime)
       .click('#next')
-      .waitForElementNotPresent('.spinner', waitTime)
+      .waitForElementPresent('div[data-id="document_17"]', waitTime)
       .click('#select-per-page')
       // http://www.w3.org/TR/2012/WD-webdriver-20120710/
       .keys(['\uE013', '\uE006'])
-      .waitForElementNotPresent('.spinner', waitTime)
       .waitForElementPresent('div[data-id="document_1"]', waitTime)
       .end();
   }

Reply via email to