summaryrefslogtreecommitdiffstats
path: root/apps/files_external/tests/js/settingsSpec.js
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_external/tests/js/settingsSpec.js')
-rw-r--r--apps/files_external/tests/js/settingsSpec.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/files_external/tests/js/settingsSpec.js b/apps/files_external/tests/js/settingsSpec.js
index 0bdb9f5badb..18997941111 100644
--- a/apps/files_external/tests/js/settingsSpec.js
+++ b/apps/files_external/tests/js/settingsSpec.js
@@ -183,8 +183,8 @@ describe('OCA.Files_External.Settings tests', function() {
});
describe('selecting backend', function() {
it('populates the row and creates a new empty one', function() {
- var $firstRow = view.$el.find('tr:first');
selectBackend('\\OC\\TestBackend');
+ var $firstRow = view.$el.find('tr:first');
expect($firstRow.find('.backend').text()).toEqual('Test Backend');
expect($firstRow.find('.selectBackend').length).toEqual(0);
@@ -205,8 +205,8 @@ describe('OCA.Files_External.Settings tests', function() {
// TODO: check "remove" button visibility
});
it('shows row even if selection row is hidden', function() {
- view.$el.find('tr#addMountPoint').hide();
selectBackend('\\OC\\TestBackend');
+ view.$el.find('tr#addMountPoint').hide();
expect(view.$el.find('tr:first').is(':visible')).toBe(true);
expect(view.$el.find('tr#addMountPoint').is(':visible')).toBe(false);
});
@@ -217,8 +217,8 @@ describe('OCA.Files_External.Settings tests', function() {
var $tr;
beforeEach(function() {
- $tr = view.$el.find('tr:first');
selectBackend('\\OC\\TestBackend');
+ $tr = view.$el.find('tr:first');
});
it('saves storage after clicking the save button', function() {
var $field1 = $tr.find('input[data-parameter=field1]');
@@ -274,8 +274,8 @@ describe('OCA.Files_External.Settings tests', function() {
var $tr;
beforeEach(function() {
- $tr = view.$el.find('tr:first');
selectBackend('\\OC\\InputsTestBackend');
+ $tr = view.$el.find('tr:first');
});
it('lists missing fields in storage errors', function() {
@@ -342,9 +342,9 @@ describe('OCA.Files_External.Settings tests', function() {
var $td;
beforeEach(function() {
+ selectBackend('\\OC\\TestBackend');
$tr = view.$el.find('tr:first');
$td = $tr.find('.mountOptionsToggle');
- selectBackend('\\OC\\TestBackend');
});
it('shows popovermenu when clicking on toggle button, hides when clicking outside', function() {