You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ro...@apache.org on 2015/01/20 10:18:20 UTC

[1/2] fauxton commit: updated refs/heads/master to 17cfa63

Repository: couchdb-fauxton
Updated Branches:
  refs/heads/master 2a7fc648e -> 17cfa631c


try to fix flaky selenium test

see: "Waiting for attributes: avoid this!" in
https://blog.mozilla.org/webqa/2012/07/12/how-to-webdriverwait/


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

Branch: refs/heads/master
Commit: 17cfa631c1dde186f06cd1eff61552746e9ae931
Parents: b872ebf
Author: Robert Kowalski <ro...@apache.org>
Authored: Mon Jan 19 17:00:51 2015 +0100
Committer: Robert Kowalski <ro...@apache.org>
Committed: Tue Jan 20 10:17:55 2015 +0100

----------------------------------------------------------------------
 app/addons/documents/assets/less/documents.less                | 3 ++-
 app/addons/documents/tests/nightwatch/editDocumentsFromView.js | 4 +++-
 2 files changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/17cfa631/app/addons/documents/assets/less/documents.less
----------------------------------------------------------------------
diff --git a/app/addons/documents/assets/less/documents.less b/app/addons/documents/assets/less/documents.less
index ced2dc6..d752de9 100644
--- a/app/addons/documents/assets/less/documents.less
+++ b/app/addons/documents/assets/less/documents.less
@@ -208,7 +208,8 @@ button.string-edit[disabled] {
           color: @docHeaderLabels;
         }
         .doc-edit-symbol {
-          margin-top: -3px;
+          top: -3px;
+          position: relative;
         }
         .fonticon-pencil {
           font-size: 20px;

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/17cfa631/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 3936a9a..21b6d56 100644
--- a/app/addons/documents/tests/nightwatch/editDocumentsFromView.js
+++ b/app/addons/documents/tests/nightwatch/editDocumentsFromView.js
@@ -36,7 +36,9 @@ module.exports = {
       .clickWhenVisible('#nav-header-abc')
       .clickWhenVisible('#nav-design-function-abcviews')
       .clickWhenVisible('#abc_evens')
-      .clickWhenVisible('a[href="#/database/fauxton-selenium-tests/document_10"]')
+
+      .waitForElementPresent('a[href="#/database/fauxton-selenium-tests/document_10"]', waitTime, false)
+      .click('a[href="#/database/fauxton-selenium-tests/document_10"]')
 
       //navigated to editor
       .waitForElementVisible('#editor-container', waitTime, false)


[2/2] fauxton commit: updated refs/heads/master to 17cfa63

Posted by ro...@apache.org.
Don't redirect on dismissing the notification

If you edited a document and then clicked on cancel, you were
redirected to the database list

closes COUCHDB-2550


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

Branch: refs/heads/master
Commit: b872ebfa4adfc2c8a9d0643150d3404f9713ab0e
Parents: 2a7fc64
Author: Robert Kowalski <ro...@apache.org>
Authored: Mon Jan 19 11:51:52 2015 +0100
Committer: Robert Kowalski <ro...@apache.org>
Committed: Tue Jan 20 10:17:55 2015 +0100

----------------------------------------------------------------------
 app/addons/fauxton/base.js | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/b872ebfa/app/addons/fauxton/base.js
----------------------------------------------------------------------
diff --git a/app/addons/fauxton/base.js b/app/addons/fauxton/base.js
index 316ec55..f575ed2 100644
--- a/app/addons/fauxton/base.js
+++ b/app/addons/fauxton/base.js
@@ -106,7 +106,7 @@ function(app, FauxtonAPI, Components, ReactComponents, Actions, ZeroClipboard) {
     animationTimer: 5000,
 
     events: {
-      'click .js-dismiss': 'removeWithAnimation'
+      'click .js-dismiss': 'onClickRemoveWithAnimation'
     },
 
     initialize: function(options) {
@@ -148,14 +148,20 @@ function(app, FauxtonAPI, Components, ReactComponents, Actions, ZeroClipboard) {
       };
     },
 
-    removeWithAnimation: function () {
+    onClickRemoveWithAnimation: function (event) {
+      event.preventDefault();
+      window.clearTimeout(this.timeout);
+      this.removeWithAnimation();
+    },
+
+    removeWithAnimation: function (event) {
       this.$el.velocity('reverse', FauxtonAPI.constants.MISC.TRAY_TOGGLE_SPEED, function () {
         this.$el.remove();
       }.bind(this));
     },
 
     delayedRemoval: function () {
-      setTimeout(function () {
+      this.timeout = setTimeout(function () {
         this.removeWithAnimation();
       }.bind(this), this.animationTimer);
     },