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 946d253
Date Wed, 20 May 2015 13:55:32 GMT
Repository: couchdb-fauxton
Updated Branches:
  refs/heads/master a9e829c44 -> 946d253b4


Add test for double emit views

This is a test to check for views with a double emit that all docs are
displayed


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

Branch: refs/heads/master
Commit: 946d253b4e4509bb92b7c321a830b26b3317b13d
Parents: a9e829c
Author: Garren Smith <garren.smith@gmail.com>
Authored: Wed May 20 10:36:19 2015 +0200
Committer: Garren Smith <garren.smith@gmail.com>
Committed: Wed May 20 15:55:11 2015 +0200

----------------------------------------------------------------------
 .../tests/nightwatch/doubleEmitResults.js       | 34 ++++++++++++++++++++
 1 file changed, 34 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/946d253b/app/addons/documents/tests/nightwatch/doubleEmitResults.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/tests/nightwatch/doubleEmitResults.js b/app/addons/documents/tests/nightwatch/doubleEmitResults.js
new file mode 100644
index 0000000..2878744
--- /dev/null
+++ b/app/addons/documents/tests/nightwatch/doubleEmitResults.js
@@ -0,0 +1,34 @@
+// 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 = {
+
+  'View results with same id are all shown': function (client) {
+    var waitTime = client.globals.maxWaitTime;
+    var newDatabaseName = client.globals.testDatabaseName;
+    var dropDownElement = '#header-dropdown-menu';
+    var baseUrl = client.globals.test_settings.launch_url;
+
+    client
+    .loginToGUI()
+    .populateDatabase(newDatabaseName)
+    .url(baseUrl + '/#/database/' + newDatabaseName + '/_design/testdesigndoc/_view/stubview')
+    .waitForElementPresent('.editor-wrapper', waitTime, false)
+    .waitForElementPresent('.doc-row', waitTime, false)
+    .execute(function () {
+      return $('.doc-row').length;
+    }, function (result) {
+      client.assert.equal(result.value, 20);
+    })
+    .end();
+  },
+};


Mime
View raw message