You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ro...@apache.org on 2014/12/15 12:41:08 UTC

fauxton commit: updated refs/heads/master to bf1b428

Repository: couchdb-fauxton
Updated Branches:
  refs/heads/master b30a6c417 -> bf1b42833


Make deleteDatabase test in Nightwatch more specific


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

Branch: refs/heads/master
Commit: bf1b42833d9bd17aeb94f8a28b06be02dd1a177c
Parents: b30a6c4
Author: michellephung@gmail.com <mi...@gmail.com>
Authored: Fri Dec 12 16:33:10 2014 -0500
Committer: Robert Kowalski <ro...@apache.org>
Committed: Mon Dec 15 12:36:51 2014 +0100

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


http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/bf1b4283/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 c698be8..e803475 100644
--- a/app/addons/databases/tests/nightwatch/deletesDatabase.js
+++ b/app/addons/databases/tests/nightwatch/deletesDatabase.js
@@ -18,7 +18,7 @@ module.exports = {
 
     client
       .loginToGUI()
-      .url(baseUrl+'/#/database/'+newDatabaseName+'/_all_docs')
+      .url(baseUrl + '/#/database/' + newDatabaseName + '/_all_docs')
       .waitForElementPresent('#header-dropdown-menu a.dropdown-toggle.icon.fonticon-cog', waitTime, false)
       .click("#header-dropdown-menu a.dropdown-toggle.icon.fonticon-cog")
       .waitForElementPresent('#header-dropdown-menu .fonticon-trash', waitTime, false)
@@ -27,11 +27,11 @@ module.exports = {
       .click('#db_name')
       .setValue('input#db_name', [newDatabaseName, client.Keys.ENTER] )
       .waitForElementVisible('#global-notifications .alert.alert-info', waitTime, false)
-      .url(baseUrl+'/_all_dbs')
-      .waitForElementPresent('pre',waitTime, false)
+      .url(baseUrl + '/_all_dbs')
+      .waitForElementPresent('pre', waitTime, false)
       .getText('body', function (result) {
-        var data = result.value, 
-            createdDatabaseIsNotPresent = data.indexOf(newDatabaseName);
+        var data = result.value,
+            createdDatabaseIsNotPresent = data.indexOf('"' + newDatabaseName + '"');
 
         this.verify.ok(createdDatabaseIsNotPresent === -1,
           'Checking if new database no longer shows up in _all_dbs.');