Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id AEB6A200BAF for ; Mon, 31 Oct 2016 15:04:41 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id AD496160B05; Mon, 31 Oct 2016 14:04:41 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id F2733160AF0 for ; Mon, 31 Oct 2016 15:04:40 +0100 (CET) Received: (qmail 35905 invoked by uid 500); 31 Oct 2016 14:04:37 -0000 Mailing-List: contact commits-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list commits@couchdb.apache.org Received: (qmail 35769 invoked by uid 99); 31 Oct 2016 14:04:37 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Oct 2016 14:04:37 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 06302E9437; Mon, 31 Oct 2016 14:04:36 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: robertkowalski@apache.org To: commits@couchdb.apache.org Date: Mon, 31 Oct 2016 14:04:37 -0000 Message-Id: <6cd25b90e32c4e0ea32dbfae82ab1af5@git.apache.org> In-Reply-To: <1b92643ceb254305b767ac86cf51c3d0@git.apache.org> References: <1b92643ceb254305b767ac86cf51c3d0@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [2/3] fauxton commit: updated refs/heads/master to 8b7e186 archived-at: Mon, 31 Oct 2016 14:04:41 -0000 add failing test This reverts commit ceccc8e46be797304ba89a2fd1e2275531a2a08e. PR: #782 PR-URL: https://github.com/apache/couchdb-fauxton/pull/782 Reviewed-By: garren smith 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 Authored: Fri Sep 30 13:49:24 2016 +0200 Committer: Robert Kowalski 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(); } };