You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ga...@apache.org on 2016/08/10 07:47:34 UTC

fauxton commit: updated refs/heads/master to d11f5cc

Repository: couchdb-fauxton
Updated Branches:
  refs/heads/master d94f3f202 -> d11f5cc9d


set jump-to-docs to be case sensitive


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

Branch: refs/heads/master
Commit: d11f5cc9d5dbd856df8bce97b8c8812172eb6dee
Parents: d94f3f2
Author: Garren Smith <ga...@gmail.com>
Authored: Tue Aug 9 14:14:22 2016 +0200
Committer: Garren Smith <ga...@gmail.com>
Committed: Tue Aug 9 15:56:18 2016 +0200

----------------------------------------------------------------------
 .../documents/components/jumptodoc.react.jsx    |  1 +
 .../tests/nightwatch/selectDocViaTypeahead.js   | 24 ++++++++++++++++++++
 2 files changed, 25 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/d11f5cc9/app/addons/documents/components/jumptodoc.react.jsx
----------------------------------------------------------------------
diff --git a/app/addons/documents/components/jumptodoc.react.jsx b/app/addons/documents/components/jumptodoc.react.jsx
index c06f0c2..37f0368 100644
--- a/app/addons/documents/components/jumptodoc.react.jsx
+++ b/app/addons/documents/components/jumptodoc.react.jsx
@@ -25,6 +25,7 @@ const JumpToDoc = ({database, loadOptions}) => {
         placeholder="Document ID"
         loadOptions={loadOptions}
         clearable={false}
+        ignoreCase={false}
         onChange={({value: docId}) => {
           const url = FauxtonAPI.urls('document', 'app', app.utils.safeURLName(database.id), app.utils.safeURLName(docId));
           // We navigating away from the page. So we need to take that navigation out of the loop otherwise

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/d11f5cc9/app/addons/documents/tests/nightwatch/selectDocViaTypeahead.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/tests/nightwatch/selectDocViaTypeahead.js b/app/addons/documents/tests/nightwatch/selectDocViaTypeahead.js
index f765acc..ef07c14 100644
--- a/app/addons/documents/tests/nightwatch/selectDocViaTypeahead.js
+++ b/app/addons/documents/tests/nightwatch/selectDocViaTypeahead.js
@@ -35,5 +35,29 @@ module.exports = {
       .keys(['\uE015', '\uE015', '\uE006'])
       .waitForElementPresent('.panel-button.upload', waitTime, false)
     .end();
+  },
+
+  'Select doc works for capitalised id': function (client) {
+    var waitTime = client.globals.maxWaitTime,
+        newDatabaseName = client.globals.testDatabaseName,
+        baseUrl = client.globals.test_settings.launch_url;
+
+    client
+      .populateDatabase(newDatabaseName, 3)
+      .createDocument('MY_CAP_DOC_ID', newDatabaseName, {value: 1, value: 2})
+      .loginToGUI()
+      .url(baseUrl + '/#/database/' + newDatabaseName + '/_all_docs')
+      .waitForElementPresent('.jump-to-doc', waitTime, false)
+      .keys(['\uE00C'])
+      .waitForElementPresent('.prettyprint', waitTime, false)
+      .waitForElementPresent('.documents-pagination', waitTime, false)
+      .click('.burger')
+
+      // we need to explicitly show the doc field because it's hidden on Travis due to screen width
+      .execute("$('.searchbox-wrapper').show();")
+      .setValue('.jump-to-doc .Select-input input', ['MY_CAP'])
+      .keys(['\uE015', '\uE015', '\uE006'])
+      .waitForElementPresent('.panel-button.upload', waitTime, false)
+    .end();
   }
 };