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/03/30 13:45:56 UTC

[4/4] fauxton commit: updated refs/heads/master to 592638a

tests: try to fix flaky test on CI

PR: #322
PR-URL: https://github.com/apache/couchdb-fauxton/pull/322
Reviewed-By: garren smith <ga...@gmail.com>


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

Branch: refs/heads/master
Commit: 592638a108c0bfda94f84428a73cafd891bbb979
Parents: db20167
Author: Robert Kowalski <ro...@kowalski.gd>
Authored: Fri Mar 27 23:15:40 2015 +0100
Committer: Robert Kowalski <ro...@apache.org>
Committed: Mon Mar 30 13:45:53 2015 +0200

----------------------------------------------------------------------
 app/addons/documents/tests/nightwatch/viewCreate.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/592638a1/app/addons/documents/tests/nightwatch/viewCreate.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/tests/nightwatch/viewCreate.js b/app/addons/documents/tests/nightwatch/viewCreate.js
index 6fde887..f1b1692 100644
--- a/app/addons/documents/tests/nightwatch/viewCreate.js
+++ b/app/addons/documents/tests/nightwatch/viewCreate.js
@@ -64,10 +64,10 @@ var tests = {
         editor.getSession().setValue("function (doc) { emit(\'enteente\', 1); }");\
       ')
       .execute('$(".save")[0].scrollIntoView();')
-      .click('button.btn-success.save')
+      .clickWhenVisible('button.btn-success.save')
+      .waitForElementPresent('.prettyprint', waitTime, false)
       .url(baseUrl + '/#/database/' + newDatabaseName + '/_all_docs')
-      .waitForElementPresent('[data-target="#testdesigndoc"]', waitTime, false)
-      .click('[data-target="#testdesigndoc"]')
+      .clickWhenVisible('[data-target="#testdesigndoc"]')
       .clickWhenVisible('[data-target="#testdesigndocviews"]', waitTime, false)
       .clickWhenVisible('#testdesigndoc_testnewview', waitTime, false)
       .waitForElementPresent('.prettyprint', waitTime, false)