couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From robertkowal...@apache.org
Subject [1/2] fauxton commit: updated refs/heads/master to 438dd32
Date Tue, 11 Aug 2015 16:17:59 GMT
Repository: couchdb-fauxton
Updated Branches:
  refs/heads/master d8c28d98f -> 438dd32f1


csrf: remove mismatch test

PR: #496
PR-URL: https://github.com/apache/couchdb-fauxton/pull/496
Reviewed-By: Michelle Phung <michellep@apache.org>


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

Branch: refs/heads/master
Commit: 438dd32f171b52c19880d9688761a7f162ffc55e
Parents: 747f3fc
Author: Robert Kowalski <robertkowalski@apache.org>
Authored: Tue Aug 11 15:51:43 2015 +0200
Committer: Robert Kowalski <robertkowalski@apache.org>
Committed: Tue Aug 11 18:17:50 2015 +0200

----------------------------------------------------------------------
 app/addons/databases/tests/nightwatch/csrf.js | 59 ----------------------
 1 file changed, 59 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/438dd32f/app/addons/databases/tests/nightwatch/csrf.js
----------------------------------------------------------------------
diff --git a/app/addons/databases/tests/nightwatch/csrf.js b/app/addons/databases/tests/nightwatch/csrf.js
deleted file mode 100644
index d83cd77..0000000
--- a/app/addons/databases/tests/nightwatch/csrf.js
+++ /dev/null
@@ -1,59 +0,0 @@
-// 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.
-
-var newDatabaseName = 'fauxton-selenium-tests-db-create';
-var helpers = require('../../../../../test/nightwatch_tests/helpers/helpers.js');
-module.exports = {
-
-  before: function (client, done) {
-    var nano = helpers.getNanoInstance();
-    nano.db.destroy(newDatabaseName, function (err, body, header) {
-      done();
-    });
-  },
-
-  after: function (client, done) {
-    var nano = helpers.getNanoInstance();
-    nano.db.destroy(newDatabaseName, function (err, body, header) {
-      done();
-    });
-  },
-
-  'Creates a Database' : function (client) {
-    var waitTime = client.globals.maxWaitTime,
-        baseUrl = client.globals.test_settings.launch_url;
-
-    client
-      .loginToGUI()
-      .checkForDatabaseDeleted(newDatabaseName, waitTime)
-      .url(baseUrl)
-
-      // ensure the page has fully loaded
-      .waitForElementPresent('.databases.table', waitTime, false)
-      .waitForElementPresent('#add-new-database', waitTime, false)
-      .clickWhenVisible('#add-new-database', waitTime, false)
-      .waitForElementVisible('#js-new-database-name', waitTime, false)
-      .setValue('#js-new-database-name', [newDatabaseName])
-      .clickWhenVisible('#js-create-database', waitTime, false)
-      .checkForDatabaseCreated(newDatabaseName, waitTime)
-      .url(baseUrl + '/_all_dbs')
-      .waitForElementVisible('html', waitTime, false)
-      .getText('html', function (result) {
-        var data = result.value,
-            createdDatabaseIsPresent = data.indexOf('mismatch');
-
-        this.verify.ok(createdDatabaseIsPresent !== -1,
-          'CSRF token mismatch');
-      })
-    .end();
-  }
-};


Mime
View raw message