You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by am...@apache.org on 2024/06/03 20:09:14 UTC

(couchdb-fauxton) branch fix-nw-tests created (now a390f52a)

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

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


      at a390f52a Fix errors running Nightwatch's execute()

This branch includes the following new commits:

     new a390f52a Fix errors running Nightwatch's execute()

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(couchdb-fauxton) 01/01: Fix errors running Nightwatch's execute()

Posted by am...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit a390f52a6dac254a63b47b1153ba852ec575bc37
Author: Antonio Maranhao <an...@gmail.com>
AuthorDate: Mon Jun 3 16:09:03 2024 -0400

    Fix errors running Nightwatch's execute()
---
 .../databases/tests/nightwatch/deletesDatabase.js  |  2 +-
 .../documents/tests/nightwatch/deletesDocuments.js |  2 +-
 .../tests/nightwatch/replicationactivity.js        | 48 +++++++++++-----------
 3 files changed, 26 insertions(+), 26 deletions(-)

diff --git a/app/addons/databases/tests/nightwatch/deletesDatabase.js b/app/addons/databases/tests/nightwatch/deletesDatabase.js
index 47978d22..9b61e1dc 100644
--- a/app/addons/databases/tests/nightwatch/deletesDatabase.js
+++ b/app/addons/databases/tests/nightwatch/deletesDatabase.js
@@ -45,7 +45,7 @@ module.exports = {
       .assert.elementPresent('a[href="database/' + newDatabaseName + '/_all_docs"]')
 
       .waitForElementPresent('button[aria-label="Delete ' + newDatabaseName + '"]', waitTime, false)
-      .execute('button[aria-label="Delete ' + newDatabaseName + '"]").scrollIntoView();')
+      .execute(`document.querySelector("button[aria-label='Delete ${newDatabaseName}']").scrollIntoView();`)
       .clickWhenVisible('button[aria-label="Delete ' + newDatabaseName + '"]', waitTime, false)
 
       .waitForElementVisible('.delete-db-modal', waitTime, false)
diff --git a/app/addons/documents/tests/nightwatch/deletesDocuments.js b/app/addons/documents/tests/nightwatch/deletesDocuments.js
index 03421012..442b54d3 100644
--- a/app/addons/documents/tests/nightwatch/deletesDocuments.js
+++ b/app/addons/documents/tests/nightwatch/deletesDocuments.js
@@ -127,7 +127,7 @@ module.exports = {
       .clickWhenVisible('input[id="checkbox-_design/sidebar-update"][type="checkbox"]', waitTime, false)
 
       .waitForElementPresent('.bulk-action-component-selector-group button.toolbar-btn[icon="fonticon-trash"]', waitTime, false)
-      .execute('document.querySelector(".bulk-action-component-selector-group button.toolbar-btn[icon="fonticon-trash"]").scrollIntoView();')
+      .execute('document.querySelector(".bulk-action-component-selector-group button.toolbar-btn[icon=\'fonticon-trash\']").scrollIntoView();')
       .clickWhenVisible('.bulk-action-component-selector-group button.toolbar-btn[icon="fonticon-trash"]')
       .acceptAlert()
 
diff --git a/app/addons/replication/tests/nightwatch/replicationactivity.js b/app/addons/replication/tests/nightwatch/replicationactivity.js
index 970ca01d..65c089e0 100644
--- a/app/addons/replication/tests/nightwatch/replicationactivity.js
+++ b/app/addons/replication/tests/nightwatch/replicationactivity.js
@@ -19,8 +19,8 @@ module.exports = {
 
     const replicatorDoc = {
       _id: 'existing-doc-id-view-doc',
-      source: "http://source-db.com",
-      target: "http://target-db.com"
+      source: "https://source-db.com",
+      target: "https://target-db.com"
     };
     client
       .deleteDatabase('_replicator')
@@ -43,8 +43,8 @@ module.exports = {
 
     const replicatorDoc = {
       _id: 'existing-doc-id-edit-doc',
-      source: "http://source-db.com",
-      target: "http://target-db.com"
+      source: "https://source-db.com",
+      target: "https://target-db.com"
     };
     client
       .deleteDatabase('_replicator')
@@ -68,14 +68,14 @@ module.exports = {
 
     const replicatorDoc1 = {
       _id: 'existing-doc-id-filter1',
-      source: "http://source-db.com",
-      target: "http://target-db.com"
+      source: "https://source-db.com",
+      target: "https://target-db.com"
     };
 
     const replicatorDoc2 = {
       _id: 'existing-doc-filter2',
-      source: "http://source-db2.com",
-      target: "http://target-db.com"
+      source: "https://source-db2.com",
+      target: "https://target-db.com"
     };
     client
       .deleteDatabase('_replicator')
@@ -102,14 +102,14 @@ module.exports = {
 
     const replicatorDoc1 = {
       _id: 'existing-doc-id-filter1',
-      source: "http://source-db.com",
-      target: "http://target-db.com"
+      source: "https://source-db.com",
+      target: "https://target-db.com"
     };
 
     const replicatorDoc2 = {
       _id: 'existing-doc-filter2',
-      source: "http://source-db2.com",
-      target: "http://target-db.com"
+      source: "https://source-db2.com",
+      target: "https://target-db.com"
     };
     client
       .deleteDatabase('_replicator')
@@ -139,38 +139,38 @@ module.exports = {
 
     const replicatorDoc1 = {
       _id: 'existing-doc-id-display',
-      source: "http://source-db.com",
-      target: "http://target-db.com"
+      source: "https://source-db.com",
+      target: "https://target-db.com"
     };
 
     const replicatorDoc2 = {
       _id: 'existing-doc-id-display2',
-      source: "http://source-db2.com",
-      target: "http://target-db.com"
+      source: "https://source-db2.com",
+      target: "https://target-db.com"
     };
 
     const replicatorDoc3 = {
       _id: 'existing-doc-id-display3',
-      source: "http://source-db3.com",
-      target: "http://target-db.com"
+      source: "https://source-db3.com",
+      target: "https://target-db.com"
     };
 
     const replicatorDoc4 = {
       _id: 'existing-doc-id-display4',
-      source: "http://source-db4.com",
-      target: "http://target-db.com"
+      source: "https://source-db4.com",
+      target: "https://target-db.com"
     };
 
     const replicatorDoc5 = {
       _id: 'existing-doc-id-display5',
-      source: "http://source-db5.com",
-      target: "http://target-db.com"
+      source: "https://source-db5.com",
+      target: "https://target-db.com"
     };
 
     const replicatorDoc6 = {
       _id: 'existing-doc-id-display6',
-      source: "http://source-db6.com",
-      target: "http://target-db.com"
+      source: "https://source-db6.com",
+      target: "https://target-db.com"
     };
 
     client