diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2016-08-10 10:32:59 +0200 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2016-10-03 09:06:51 +0200 |
commit | 5cda38346086ebc78f27eda412d316000f5131a1 (patch) | |
tree | 110ccf36572c7c663753d5cfb5f37b4d01aa8ab9 /core/js/tests | |
parent | 7533fcb977f6153065ad99b9c9e046c4e744f84e (diff) | |
download | nextcloud-server-5cda38346086ebc78f27eda412d316000f5131a1.tar.gz nextcloud-server-5cda38346086ebc78f27eda412d316000f5131a1.zip |
Make can edit checkbox work for file shares
Diffstat (limited to 'core/js/tests')
-rw-r--r-- | core/js/tests/specs/sharedialogshareelistview.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/js/tests/specs/sharedialogshareelistview.js b/core/js/tests/specs/sharedialogshareelistview.js index cef97469753..9aab46d9117 100644 --- a/core/js/tests/specs/sharedialogshareelistview.js +++ b/core/js/tests/specs/sharedialogshareelistview.js @@ -102,6 +102,7 @@ describe('OC.Share.ShareDialogShareeListView', function () { share_with: 'user1', share_with_displayname: 'User One' }]); + shareModel.set('itemType', 'folder'); listView.render(); listView.$el.find("input[name='edit']").click(); expect(listView.$el.find("input[name='update']").is(':checked')).toEqual(true); @@ -115,8 +116,10 @@ describe('OC.Share.ShareDialogShareeListView', function () { permissions: 1, share_type: OC.Share.SHARE_TYPE_USER, share_with: 'user1', - share_with_displayname: 'User One' + share_with_displayname: 'User One', + itemType: 'folder' }]); + shareModel.set('itemType', 'folder'); listView.render(); listView.$el.find("input[name='update']").click(); expect(listView.$el.find("input[name='edit']").is(':checked')).toEqual(true); |