Repository: couchdb-fauxton Updated Branches: refs/heads/master b1bc3a616 -> 8a1aaff19
remove select-all button on changes view closes COUCHDB-2576 Project: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/commit/8a1aaff1 Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/tree/8a1aaff1 Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/diff/8a1aaff1 Branch: refs/heads/master Commit: 8a1aaff198ceb16a4754dfce8453fda80fd17783 Parents: b1bc3a6 Author: Robert Kowalski <[email protected]> Authored: Wed Mar 4 13:29:17 2015 +0100 Committer: Garren Smith <[email protected]> Committed: Mon Mar 9 11:57:50 2015 +0200 ---------------------------------------------------------------------- app/addons/documents/routes-documents.js | 3 ++- .../documents/tests/nightwatch/changes.js | 28 ++++++++++++++++++++ 2 files changed, 30 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/8a1aaff1/app/addons/documents/routes-documents.js ---------------------------------------------------------------------- diff --git a/app/addons/documents/routes-documents.js b/app/addons/documents/routes-documents.js index 5edafc8..c8b35b0 100644 --- a/app/addons/documents/routes-documents.js +++ b/app/addons/documents/routes-documents.js @@ -43,7 +43,7 @@ function(app, FauxtonAPI, BaseRoute, Documents, Changes, Index, DocEditor, route: "designDocMetadata", roles: ['fx_loggedIn'] }, - "database/:database/_changes(:params)": "changes" + 'database/:database/_changes': 'changes' }, events: { @@ -203,6 +203,7 @@ function(app, FauxtonAPI, BaseRoute, Documents, Changes, Index, DocEditor, this.footer && this.footer.remove(); this.toolsView && this.toolsView.remove(); this.viewEditor && this.viewEditor.remove(); + this.reactHeader && this.reactHeader.remove(); this.sidebar.setSelectedTab('changes'); this.leftheader.updateCrumbs(this.getCrumbs(this.database)); http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/8a1aaff1/app/addons/documents/tests/nightwatch/changes.js ---------------------------------------------------------------------- diff --git a/app/addons/documents/tests/nightwatch/changes.js b/app/addons/documents/tests/nightwatch/changes.js new file mode 100644 index 0000000..90eec6e --- /dev/null +++ b/app/addons/documents/tests/nightwatch/changes.js @@ -0,0 +1,28 @@ +// 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 = { + 'Does not display the Select-all-button': function (client) { + var waitTime = 10000, + newDatabaseName = client.globals.testDatabaseName, + baseUrl = client.globals.test_settings.launch_url; + + client + .loginToGUI() + .url(baseUrl + '/#/database/' + newDatabaseName + '/_all_docs') + .waitForElementPresent('.control-toggle-alternative-header', waitTime, false) + .click('#changes') + .waitForElementVisible('.changes-view', waitTime, false) + .assert.elementNotPresent('.control-toggle-alternative-header') + .end(); + } +};
