aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/tests/js/fileactionsmenuSpec.js
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files/tests/js/fileactionsmenuSpec.js')
-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({