summaryrefslogtreecommitdiffstats
path: root/apps/files/tests
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-04-29 17:59:30 +0200
committerVincent Petry <pvince81@owncloud.com>2014-04-29 17:59:30 +0200
commit10bc67bef995bbb14e6edaa82bfd356968906f9a (patch)
tree18afa598df47eca08317efa2ffded9a3f7314659 /apps/files/tests
parent6b02126dc1c8ba9de5b87c6c8568feea5948d2a0 (diff)
downloadnextcloud-server-10bc67bef995bbb14e6edaa82bfd356968906f9a.tar.gz
nextcloud-server-10bc67bef995bbb14e6edaa82bfd356968906f9a.zip
Show spinner for all files when deleting all
Diffstat (limited to 'apps/files/tests')
-rw-r--r--apps/files/tests/js/filelistSpec.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/apps/files/tests/js/filelistSpec.js b/apps/files/tests/js/filelistSpec.js
index eab364644cd..7a2b56d559a 100644
--- a/apps/files/tests/js/filelistSpec.js
+++ b/apps/files/tests/js/filelistSpec.js
@@ -413,6 +413,20 @@ describe('FileList tests', function() {
expect(notificationStub.notCalled).toEqual(true);
});
+ it('shows spinner on files to be deleted', function() {
+ FileList.setFiles(testFiles);
+ doDelete();
+
+ expect(FileList.findFileEl('One.txt').find('.progress-icon:not(.delete-icon)').length).toEqual(1);
+ expect(FileList.findFileEl('Three.pdf').find('.delete-icon:not(.progress-icon)').length).toEqual(1);
+ });
+ it('shows spinner on all files when deleting all', function() {
+ FileList.setFiles(testFiles);
+
+ FileList.do_delete();
+
+ expect(FileList.$fileList.find('tr .progress-icon:not(.delete-icon)').length).toEqual(4);
+ });
it('updates summary when deleting last file', function() {
FileList.setFiles([testFiles[0], testFiles[1]]);
doDelete();