You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ga...@apache.org on 2018/03/19 14:18:57 UTC

[couchdb-fauxton] 01/01: make test more robust

This is an automated email from the ASF dual-hosted git repository.

garren pushed a commit to branch fix-nw-tests
in repository https://gitbox.apache.org/repos/asf/couchdb-fauxton.git

commit 931dfbed809627d36ca72938f7ec2ba9adaf6b24
Author: Garren Smith <ga...@gmail.com>
AuthorDate: Mon Mar 19 16:14:42 2018 +0200

    make test more robust
---
 app/addons/databases/tests/nightwatch/checkDatabaseTooltip.js | 2 +-
 bin/remove-test-dbs.js                                        | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/app/addons/databases/tests/nightwatch/checkDatabaseTooltip.js b/app/addons/databases/tests/nightwatch/checkDatabaseTooltip.js
index ded2916..dbc896f 100644
--- a/app/addons/databases/tests/nightwatch/checkDatabaseTooltip.js
+++ b/app/addons/databases/tests/nightwatch/checkDatabaseTooltip.js
@@ -31,7 +31,7 @@ module.exports = {
       .click('#dashboard-content a[href="database/' + newDatabaseName + '/_all_docs"]')
 
       //this opens the alternative header
-      .clickWhenVisible('.bulk-action-component-panel input[type="checkbox"]')
+      .clickWhenVisible('.tableview-checkbox-cell input[type="checkbox"]')
       .clickWhenVisible('.bulk-action-component-selector-group button.fonticon-trash', waitTime, false)
       .acceptAlert()
       .waitForElementVisible('#global-notifications .alert.alert-info', waitTime, false)
diff --git a/bin/remove-test-dbs.js b/bin/remove-test-dbs.js
index 0307560..3ae0ac8 100755
--- a/bin/remove-test-dbs.js
+++ b/bin/remove-test-dbs.js
@@ -18,7 +18,7 @@ const async = require('async');
 const settingsFilePath = './settings.json';
 const settingsFile = fs.existsSync(settingsFilePath) ? settingsFilePath : './settings.json.default.json';
 const settings = JSON.parse(fs.readFileSync(settingsFile)).nightwatch;
-const dbUrl = `http://${settings.fauxton_username}:${settings.password}@${settings.db_host}:${settings.db_port}`;
+const dbUrl = `${settings.db_protocol}://${settings.fauxton_username}:${settings.password}@${settings.db_host}:${settings.db_port}`;
 const nano = require('nano')(dbUrl);
 
 nano.db.list((err, body) => {

-- 
To stop receiving notification emails like this one, please contact
garren@apache.org.