couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From benk...@apache.org
Subject fauxton commit: updated refs/heads/master to fbff111
Date Fri, 05 Dec 2014 17:09:32 GMT
Repository: couchdb-fauxton
Updated Branches:
  refs/heads/master 1be2a7713 -> fbff1116f


Nightwatch test for Verify Installation page


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

Branch: refs/heads/master
Commit: fbff1116f8085ade0b65ae21f6baa2847f4b663d
Parents: 1be2a77
Author: Benjamin Keen <ben.keen@gmail.com>
Authored: Fri Nov 28 12:38:48 2014 -0800
Committer: Benjamin Keen <ben.keen@gmail.com>
Committed: Fri Dec 5 09:09:07 2014 -0800

----------------------------------------------------------------------
 .../tests/nightwatch/testVerification.js        | 30 ++++++++++++++++++++
 1 file changed, 30 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/fbff1116/app/addons/verifyinstall/tests/nightwatch/testVerification.js
----------------------------------------------------------------------
diff --git a/app/addons/verifyinstall/tests/nightwatch/testVerification.js b/app/addons/verifyinstall/tests/nightwatch/testVerification.js
new file mode 100644
index 0000000..1c02f5b
--- /dev/null
+++ b/app/addons/verifyinstall/tests/nightwatch/testVerification.js
@@ -0,0 +1,30 @@
+// Licensed under the Apache License, Version 2.0 (the "License"); you may not
+// use this file except in compliance with the License. You may obtain a copy of
+// the License at
+//
+//   http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+// License for the specific language governing permissions and limitations under
+// the License.
+
+module.exports = {
+  'Run the Verification test' : function (client) {
+    var waitTime = 10000,
+      baseUrl = client.globals.test_settings.launch_url;
+
+    client
+      .loginToGUI()
+      .url(baseUrl + '#verifyinstall')
+      .waitForElementPresent('#start', waitTime, false)
+      .click('#start')
+      .waitForElementVisible('.alert-success', waitTime, false)
+      .getText('html', function (result) {
+        var testPassed = result.value.indexOf('Success! Your CouchDB installation is working.
Time to Relax.');
+        this.verify.ok(testPassed > 0, 'Checking the verification set passed.');
+      })
+      .end();
+  }
+};


Mime
View raw message