couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From robertkowal...@apache.org
Subject [2/3] fauxton commit: updated refs/heads/master to 8b7e186
Date Mon, 31 Oct 2016 14:04:37 GMT
add failing test

This reverts commit ceccc8e46be797304ba89a2fd1e2275531a2a08e.

PR: #782
PR-URL: https://github.com/apache/couchdb-fauxton/pull/782
Reviewed-By: garren smith <garren.smith@gmail.com>


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

Branch: refs/heads/master
Commit: a12add397b5ead66b6db92623102f0672ecd9be5
Parents: 7166e4c
Author: Robert Kowalski <robertkowalski@apache.org>
Authored: Fri Sep 30 13:49:24 2016 +0200
Committer: Robert Kowalski <robertkowalski@apache.org>
Committed: Mon Oct 31 15:04:34 2016 +0100

----------------------------------------------------------------------
 .../nightwatch/deletesDatabaseSpecialChars.js   | 23 +++++++++++++++++++-
 1 file changed, 22 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/a12add39/app/addons/databases/tests/nightwatch/deletesDatabaseSpecialChars.js
----------------------------------------------------------------------
diff --git a/app/addons/databases/tests/nightwatch/deletesDatabaseSpecialChars.js b/app/addons/databases/tests/nightwatch/deletesDatabaseSpecialChars.js
index ff884d9..c68899d 100644
--- a/app/addons/databases/tests/nightwatch/deletesDatabaseSpecialChars.js
+++ b/app/addons/databases/tests/nightwatch/deletesDatabaseSpecialChars.js
@@ -10,11 +10,11 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
+const newDatabaseName = 'one/two-three/_four';
 
 module.exports = {
   'Deletes a database with special chars': function (client) {
     const waitTime = client.globals.maxWaitTime;
-    const newDatabaseName = 'one/two-three/_four'; // add any other chars here you want to
test
     const baseUrl = client.globals.test_settings.launch_url;
 
     client
@@ -30,5 +30,26 @@ module.exports = {
       .checkForDatabaseDeleted(newDatabaseName, waitTime)
 
     .end();
+  },
+
+  'Deletes a database from the list with special chars': function (client) {
+    const waitTime = client.globals.maxWaitTime;
+    const baseUrl = client.globals.test_settings.launch_url;
+
+    client
+      .createDatabase(newDatabaseName)
+      .loginToGUI()
+      .url(baseUrl + '/#/_all_dbs/')
+
+      .waitForElementPresent('a[href="#/database/' + newDatabaseName + '/_all_docs"]', waitTime,
false)
+      .assert.elementPresent('a[href="#/database/' + newDatabaseName + '/_all_docs"]')
+      .clickWhenVisible('[title="Delete ' + newDatabaseName + '"]', waitTime, false)
+      .setValue('.delete-db-modal input[type="text"]', [newDatabaseName, client.Keys.ENTER])
+      .waitForElementNotPresent('.global-notification .fonticon-cancel', waitTime, false)
+      .waitForElementPresent('.fauxton-table-list', waitTime, false)
+      .checkForDatabaseDeleted(newDatabaseName, waitTime)
+      .assert.elementNotPresent('a[href="#/database/' + newDatabaseName + '/_all_docs"]')
+
+    .end();
   }
 };


Mime
View raw message