aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/tests
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2019-03-15 12:54:31 +0100
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2019-03-21 08:16:00 +0100
commitff164db9350347b404d180fe08f3cb30e8c3d520 (patch)
tree5a97e3a2f2fe3865a54dc7c3ca8836cfd3c2d4bb /apps/files/tests
parent4c884f1b235375a9e93e11acc1a5f057eee6282e (diff)
downloadnextcloud-server-ff164db9350347b404d180fe08f3cb30e8c3d520.tar.gz
nextcloud-server-ff164db9350347b404d180fe08f3cb30e8c3d520.zip
Add link icon for public link too
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/files/tests')
-rw-r--r--apps/files/tests/js/fileactionsmenuSpec.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/files/tests/js/fileactionsmenuSpec.js b/apps/files/tests/js/fileactionsmenuSpec.js
index 2d31f24a1b3..c2be3011838 100644
--- a/apps/files/tests/js/fileactionsmenuSpec.js
+++ b/apps/files/tests/js/fileactionsmenuSpec.js
@@ -113,8 +113,11 @@ describe('OCA.Files.FileActionsMenu tests', function() {
it('does not render default actions', function() {
expect(menu.$el.find('a[data-action=Testdefault]').length).toEqual(0);
});
- it('does not render inline actions', function() {
- expect(menu.$el.find('a[data-action=Testinline]').length).toEqual(0);
+ it('render inline actions', function() {
+ expect(menu.$el.find('a[data-action=Testinline]').length).toEqual(1);
+ });
+ it('render inline actions but it is hidden', function() {
+ expect(menu.$el.find('a[data-action=Testinline]').parent().hasClass('hidden')).toEqual(true);
});
it('only renders actions relevant to the mime type', function() {
fileActions.registerAction({