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 4374c2d
Date Thu, 28 May 2015 20:33:04 GMT
Repository: couchdb-fauxton
Updated Branches:
  refs/heads/master 91ab94c4b -> 4374c2d8a


Explicitly create DB in NW tests

This shouldn't be required, but we noticed that sometimes the
NW beforeEach() doesn't appear to create the database before the
test starts running.
s


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

Branch: refs/heads/master
Commit: 4374c2d8ac3e2e38d1bc95f6413dd8d8b8eb1f1d
Parents: 91ab94c
Author: Ben Keen <ben.keen@gmail.com>
Authored: Thu May 28 12:43:14 2015 -0700
Committer: Ben Keen <ben.keen@gmail.com>
Committed: Thu May 28 12:43:14 2015 -0700

----------------------------------------------------------------------
 app/addons/databases/tests/nightwatch/deletesDatabase.js | 1 +
 app/addons/documents/tests/nightwatch/createsDocument.js | 1 +
 2 files changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/4374c2d8/app/addons/databases/tests/nightwatch/deletesDatabase.js
----------------------------------------------------------------------
diff --git a/app/addons/databases/tests/nightwatch/deletesDatabase.js b/app/addons/databases/tests/nightwatch/deletesDatabase.js
index a5249c0..4d05410 100644
--- a/app/addons/databases/tests/nightwatch/deletesDatabase.js
+++ b/app/addons/databases/tests/nightwatch/deletesDatabase.js
@@ -17,6 +17,7 @@ module.exports = {
         baseUrl = client.globals.test_settings.launch_url;
 
     client
+      .createDatabase(newDatabaseName)
       .loginToGUI()
       .url(baseUrl + '/#/database/' + newDatabaseName + '/_all_docs')
       .waitForElementPresent('#header-dropdown-menu a.dropdown-toggle.icon.fonticon-cog',
waitTime, false)

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/4374c2d8/app/addons/documents/tests/nightwatch/createsDocument.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/tests/nightwatch/createsDocument.js b/app/addons/documents/tests/nightwatch/createsDocument.js
index ec0e33b..e16de06 100644
--- a/app/addons/documents/tests/nightwatch/createsDocument.js
+++ b/app/addons/documents/tests/nightwatch/createsDocument.js
@@ -19,6 +19,7 @@ module.exports = {
         baseUrl = client.globals.test_settings.launch_url;
 
     client
+      .createDatabase(newDatabaseName)
       .loginToGUI()
       .url(baseUrl + '/#/database/' + newDatabaseName + '/_all_docs')
       .clickWhenVisible('#new-all-docs-button a')


Mime
View raw message