diff options
author | Morris Jobke <hey@morrisjobke.de> | 2015-07-03 09:31:40 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-07-03 09:31:40 +0200 |
commit | 9da10788bc8bd21c17d953c8ae152c3a551cf3bc (patch) | |
tree | 7f1fa5b744ebc890c2a439e9f5b146b49a5480d8 /apps/files_sharing/tests/js | |
parent | f70791653cefc40f640e48dcad489237b750d85c (diff) | |
parent | 71ae96bb56c668e8bc587e89ce9cf55e22fe7455 (diff) | |
download | nextcloud-server-9da10788bc8bd21c17d953c8ae152c3a551cf3bc.tar.gz nextcloud-server-9da10788bc8bd21c17d953c8ae152c3a551cf3bc.zip |
Merge pull request #17349 from owncloud/share-onlyshowstaticownerifavailable
Do not show static share owner if not available
Diffstat (limited to 'apps/files_sharing/tests/js')
-rw-r--r-- | apps/files_sharing/tests/js/shareSpec.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/apps/files_sharing/tests/js/shareSpec.js b/apps/files_sharing/tests/js/shareSpec.js index 1b1e363b792..1bbf4ffca09 100644 --- a/apps/files_sharing/tests/js/shareSpec.js +++ b/apps/files_sharing/tests/js/shareSpec.js @@ -206,6 +206,23 @@ describe('OCA.Sharing.Util tests', function() { expect(OC.basename(getImageUrl($tr.find('.filename .thumbnail')))).toEqual('folder-shared.svg'); expect($action.find('img').length).toEqual(1); }); + it('do not show static share text when share exists but neither permission nor owner is available', function() { + var $action, $tr; + fileList.setFiles([{ + id: 1, + type: 'dir', + name: 'One', + path: '/subdir', + mimetype: 'text/plain', + size: 12, + permissions: OC.PERMISSION_CREATE, + etag: 'abc' + }]); + $tr = fileList.$el.find('tbody tr:first'); + expect($tr.find('.action-share').length).toEqual(0); + $action = $tr.find('.action-share-notification'); + expect($action.length).toEqual(0); + }); }); describe('Share action', function() { var showDropDownStub; |