couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gar...@apache.org
Subject fauxton commit: updated refs/heads/master to 1471208
Date Mon, 06 Feb 2017 16:06:23 GMT
Repository: couchdb-fauxton
Updated Branches:
  refs/heads/master a88bad950 -> 14712080f


Make db names more random


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

Branch: refs/heads/master
Commit: 14712080f75c8ce42148b97557850e98f9d13dba
Parents: a88bad9
Author: Garren Smith <garren.smith@gmail.com>
Authored: Mon Feb 6 17:10:18 2017 +0200
Committer: Garren Smith <garren.smith@gmail.com>
Committed: Mon Feb 6 17:11:12 2017 +0200

----------------------------------------------------------------------
 .../documents/tests/nightwatch/encodingSupport.js      | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14712080/app/addons/documents/tests/nightwatch/encodingSupport.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/tests/nightwatch/encodingSupport.js b/app/addons/documents/tests/nightwatch/encodingSupport.js
index 8d92b43..5c00cfb 100644
--- a/app/addons/documents/tests/nightwatch/encodingSupport.js
+++ b/app/addons/documents/tests/nightwatch/encodingSupport.js
@@ -10,12 +10,10 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
-
-
 module.exports = {
   'mango supports encoding': function (client) {
     var waitTime = client.globals.maxWaitTime,
-        newDatabaseName = 'encoded/db',
+        newDatabaseName = 'encoded/db-' + client.globals.testDatabaseName,
         baseUrl = client.globals.test_settings.launch_url;
 
     client
@@ -32,7 +30,7 @@ module.exports = {
 
   'permissions supports encoding': function (client) {
     var waitTime = client.globals.maxWaitTime,
-        newDatabaseName = 'encoded/db',
+        newDatabaseName = 'encoded/db-' + client.globals.testDatabaseName,
         baseUrl = client.globals.test_settings.launch_url;
 
     client
@@ -49,7 +47,7 @@ module.exports = {
 
   'changes supports encoding': function (client) {
     var waitTime = client.globals.maxWaitTime,
-        newDatabaseName = 'encoded/db',
+        newDatabaseName = 'encoded/db-' + client.globals.testDatabaseName,
         baseUrl = client.globals.test_settings.launch_url;
 
     client
@@ -65,7 +63,7 @@ module.exports = {
   },
   'views support encoding': function (client) {
     var waitTime = client.globals.maxWaitTime,
-        newDatabaseName = 'encoded/db',
+        newDatabaseName = 'encoded/db-' + client.globals.testDatabaseName,
         baseUrl = client.globals.test_settings.launch_url;
 
     client
@@ -76,10 +74,11 @@ module.exports = {
       .url(baseUrl + '/#/database/' + encodeURIComponent(newDatabaseName) + '/_all_docs')
       .waitForElementPresent('.bulk-action-component-panel', waitTime, true)
       .clickWhenVisible('#nav-header-testdesigndoc', waitTime, true)
-      .clickWhenVisible('a[href="#/database/encoded%2Fdb/_design/testdesigndoc/_info"]',
waitTime, true)
+      .clickWhenVisible('a[href="#/database/' + encodeURIComponent(newDatabaseName) + '/_design/testdesigndoc/_info"]',
waitTime, true)
       .waitForElementPresent('.metadata-page', waitTime, true)
       .clickWhenVisible('#nav-design-function-testdesigndocviews', waitTime, true)
       .clickWhenVisible('#testdesigndoc_stubview', waitTime, true)
+      .waitForElementNotPresent('.loading-lines', waitTime, true)
       .waitForElementPresent('#doc-list', waitTime, true)
       .clickWhenVisible('.active .index-menu-toggle', waitTime, true)
       .clickWhenVisible('.fonticon-file-code-o')


Mime
View raw message