summaryrefslogtreecommitdiffstats
path: root/apps/files/tests
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-04-29 18:49:11 +0200
committerVincent Petry <pvince81@owncloud.com>2014-04-29 18:49:11 +0200
commit61db16321f1bf7ceea22672b33cd165fc3620a4a (patch)
tree1fd27c08faa526dc9d2143e929e4f3f06527c8c8 /apps/files/tests
parent535302b25eadf982b0c1572221bde7dee4ebe52a (diff)
downloadnextcloud-server-61db16321f1bf7ceea22672b33cd165fc3620a4a.tar.gz
nextcloud-server-61db16321f1bf7ceea22672b33cd165fc3620a4a.zip
Clear selection on reload (when changing sort)
Diffstat (limited to 'apps/files/tests')
-rw-r--r--apps/files/tests/js/filelistSpec.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/files/tests/js/filelistSpec.js b/apps/files/tests/js/filelistSpec.js
index 0c56e7975f8..1a639805104 100644
--- a/apps/files/tests/js/filelistSpec.js
+++ b/apps/files/tests/js/filelistSpec.js
@@ -1421,6 +1421,12 @@ describe('FileList tests', function() {
});
});
});
+ it('resets the file selection on reload', function() {
+ FileList.$el.find('#select_all').click();
+ FileList.reload();
+ expect(FileList.$el.find('#select_all').prop('checked')).toEqual(false);
+ expect(FileList.getSelectedFiles()).toEqual([]);
+ });
});
describe('Sorting files', function() {
it('Sorts by name by default', function() {