couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From benk...@apache.org
Subject fauxton commit: updated refs/heads/master to ceb51a7
Date Thu, 14 May 2015 23:19:11 GMT
Repository: couchdb-fauxton
Updated Branches:
  refs/heads/master 13b760b41 -> ceb51a738


Fix for switchDatabase.js test

This slows down the test to wait for the body of the databases
table to have been loaded before redirecting. That ensures that
the databases have actually been loaded, so the jumptodb option
has a data source loaded.


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

Branch: refs/heads/master
Commit: ceb51a73896d22350ebcd4d969f0eaa48ab2e6ef
Parents: 13b760b
Author: Ben Keen <ben.keen@gmail.com>
Authored: Thu May 14 15:05:19 2015 -0700
Committer: Ben Keen <ben.keen@gmail.com>
Committed: Thu May 14 16:18:19 2015 -0700

----------------------------------------------------------------------
 app/addons/databases/tests/nightwatch/switchDatabase.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/ceb51a73/app/addons/databases/tests/nightwatch/switchDatabase.js
----------------------------------------------------------------------
diff --git a/app/addons/databases/tests/nightwatch/switchDatabase.js b/app/addons/databases/tests/nightwatch/switchDatabase.js
index dd71cea..6483f4d 100644
--- a/app/addons/databases/tests/nightwatch/switchDatabase.js
+++ b/app/addons/databases/tests/nightwatch/switchDatabase.js
@@ -21,9 +21,9 @@ module.exports = {
 
       // wait for the DB name typeahead field to appear in the header
       .waitForElementPresent('#jump-to-db .search-autocomplete', waitTime, false)
+      .waitForElementPresent('#dashboard-content table.databases', waitTime, false)
       .setValue('#jump-to-db .search-autocomplete', [newDatabaseName, client.Keys.ENTER])
       .waitForElementPresent('.index-pagination', waitTime, false)
-
       // now check we've redirected and the URL ends with /_all_docs
       .url(function (result) {
         var endsWithAllDocs = /all_docs$/.test(result.value);


Mime
View raw message