couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gar...@apache.org
Subject [1/2] fauxton commit: updated refs/heads/master to b48b232
Date Thu, 12 Jan 2017 14:22:42 GMT
Repository: couchdb-fauxton
Updated Branches:
  refs/heads/master 09cf05e9c -> b48b232bf


simplify editDocumentsFromView test


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

Branch: refs/heads/master
Commit: 0249399724dfe2008504fc3c1eda1a7f199537c0
Parents: 09cf05e
Author: Garren Smith <garren.smith@gmail.com>
Authored: Thu Jan 12 14:31:18 2017 +0200
Committer: Garren Smith <garren.smith@gmail.com>
Committed: Thu Jan 12 14:31:18 2017 +0200

----------------------------------------------------------------------
 .../documents/tests/nightwatch/editDocumentsFromView.js      | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/02493997/app/addons/documents/tests/nightwatch/editDocumentsFromView.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/tests/nightwatch/editDocumentsFromView.js b/app/addons/documents/tests/nightwatch/editDocumentsFromView.js
index 06fa981..5ad6572 100644
--- a/app/addons/documents/tests/nightwatch/editDocumentsFromView.js
+++ b/app/addons/documents/tests/nightwatch/editDocumentsFromView.js
@@ -14,8 +14,9 @@
 
 module.exports = {
   'Edit is allowed from default Map Views' : function (client) {
-    var waitTime = client.globals.maxWaitTime,
+    const waitTime = client.globals.maxWaitTime,
         newDatabaseName = client.globals.testDatabaseName,
+        baseUrl = client.globals.test_settings.launch_url,
         newDocumentName = '_design/abc',
         ddocContents = {
           "views": {
@@ -32,12 +33,9 @@ module.exports = {
       .populateDatabase(newDatabaseName)
 
       .loginToGUI()
+      .url(baseUrl + '/#/database/' + newDatabaseName + '/_design/abc/_view/evens')
 
       //navigate to 'evens' view (declared above), then click on first document's pencil
icon
-      .clickWhenVisible('#dashboard-content a[href="database/' + newDatabaseName + '/_all_docs"]')
-      .clickWhenVisible('#nav-header-abc')
-      .clickWhenVisible('#nav-design-function-abcviews a')
-      .clickWhenVisible('#abc_evens')
       .clickWhenVisible('a[href="#/database/' + newDatabaseName + '/document_10"]')
       //navigated to editor
       .waitForElementVisible('#editor-container', waitTime, false)


Mime
View raw message