summaryrefslogtreecommitdiffstats
path: root/apps/files_external/tests
diff options
context:
space:
mode:
authorRobin McCorkell <robin@mccorkell.me.uk>2016-03-16 22:06:49 +0000
committerRobin McCorkell <robin@mccorkell.me.uk>2016-03-16 22:06:49 +0000
commita51ece97e3a3ffd612d3e64b2f1a341ad0759e28 (patch)
treec3d9c8f113fb4a8ea088c0678b511a76f257ac67 /apps/files_external/tests
parentb4ea527fb2504a259e59c97b1f5cf77b47dafbe9 (diff)
downloadnextcloud-server-a51ece97e3a3ffd612d3e64b2f1a341ad0759e28.tar.gz
nextcloud-server-a51ece97e3a3ffd612d3e64b2f1a341ad0759e28.zip
Display external storage GUI even if user mounting disabled
Diffstat (limited to 'apps/files_external/tests')
-rw-r--r--apps/files_external/tests/js/settingsSpec.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/files_external/tests/js/settingsSpec.js b/apps/files_external/tests/js/settingsSpec.js
index 2a7afd6c2fa..462407e9540 100644
--- a/apps/files_external/tests/js/settingsSpec.js
+++ b/apps/files_external/tests/js/settingsSpec.js
@@ -179,6 +179,12 @@ describe('OCA.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');
+ expect(view.$el.find('tr:first').is(':visible')).toBe(true);
+ expect(view.$el.find('tr#addMountPoint').is(':visible')).toBe(false);
+ });
// TODO: test with personal mounts (no applicable fields)
// TODO: test suggested mount point logic
});