couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From robertkowal...@apache.org
Subject fauxton commit: updated refs/heads/master to 8b8d5e2
Date Mon, 24 Nov 2014 10:43:31 GMT
Repository: couchdb-fauxton
Updated Branches:
  refs/heads/master 66d6eb014 -> 8b8d5e22f


Replace .execute() for .click() behavior in Nightwatch tests


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

Branch: refs/heads/master
Commit: 8b8d5e22f28ed526a2902cef1b817fa94c0bb3d7
Parents: 66d6eb0
Author: Michelle Phung <michellephung@gmail.com>
Authored: Fri Nov 21 13:12:44 2014 -0500
Committer: Robert Kowalski <robertkowalski@apache.org>
Committed: Mon Nov 24 11:39:19 2014 +0100

----------------------------------------------------------------------
 app/addons/databases/tests/nightwatch/deletesDatabase.js | 2 +-
 test/nightwatch_tests/custom-commands/loginToGUI.js      | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/8b8d5e22/app/addons/databases/tests/nightwatch/deletesDatabase.js
----------------------------------------------------------------------
diff --git a/app/addons/databases/tests/nightwatch/deletesDatabase.js b/app/addons/databases/tests/nightwatch/deletesDatabase.js
index e70bdbd..345cdf5 100644
--- a/app/addons/databases/tests/nightwatch/deletesDatabase.js
+++ b/app/addons/databases/tests/nightwatch/deletesDatabase.js
@@ -20,7 +20,7 @@ module.exports = {
       .loginToGUI()
       .url(baseUrl+'/#/database/'+newDatabaseName+'/_all_docs')
       .waitForElementPresent('#header-dropdown-menu a.dropdown-toggle.icon.fonticon-cog',
waitTime, false)
-      .execute('$("#header-dropdown-menu a.dropdown-toggle.icon.fonticon-cog").click();')
+      .click("#header-dropdown-menu a.dropdown-toggle.icon.fonticon-cog")
       .waitForElementPresent('#header-dropdown-menu .fonticon-trash', waitTime, false)
       .click('#header-dropdown-menu .fonticon-trash')
       .waitForElementVisible('#db_name', waitTime, false)

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/8b8d5e22/test/nightwatch_tests/custom-commands/loginToGUI.js
----------------------------------------------------------------------
diff --git a/test/nightwatch_tests/custom-commands/loginToGUI.js b/test/nightwatch_tests/custom-commands/loginToGUI.js
index fb9ac78..7b4db79 100644
--- a/test/nightwatch_tests/custom-commands/loginToGUI.js
+++ b/test/nightwatch_tests/custom-commands/loginToGUI.js
@@ -10,7 +10,8 @@ exports.command = function () {
     .waitForElementPresent('#username', 8000, false)
     .setValue('#username', ['tester'])
     .setValue('#password', ['testerpass', client.Keys.ENTER])
-    .execute('$("#global-notifications button.close").click();')
+    .waitForElementVisible('#global-notifications', 8000, false)
+    .click('#global-notifications button.close')
     .waitForElementPresent('#jump-to-db', 8000, false);
       
   return this;


Mime
View raw message