aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-12-18 12:10:11 +0100
committerVincent Petry <pvince81@owncloud.com>2014-12-18 12:10:11 +0100
commit10a0fc2856bfa68ff04a42f141829a6e66a9b2da (patch)
treefc43cd96957075a79221372b9155da371c3eece8 /apps
parent5c6e08213e6ed52517f9f729ae91a2973f09c182 (diff)
parentec0401f97b39f12b611c997e39039420b085969c (diff)
downloadnextcloud-server-10a0fc2856bfa68ff04a42f141829a6e66a9b2da.tar.gz
nextcloud-server-10a0fc2856bfa68ff04a42f141829a6e66a9b2da.zip
Merge pull request #12925 from owncloud/fix-js-unit-tests
be more explicit in JS unit tests - caused by accessibility issues
Diffstat (limited to 'apps')
-rw-r--r--apps/files/tests/js/filelistSpec.js2
-rw-r--r--apps/files_external/tests/js/mountsfilelistSpec.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/tests/js/filelistSpec.js b/apps/files/tests/js/filelistSpec.js
index 6c83f214c39..6dafa262715 100644
--- a/apps/files/tests/js/filelistSpec.js
+++ b/apps/files/tests/js/filelistSpec.js
@@ -275,7 +275,7 @@ describe('OCA.Files.FileList tests', function() {
mtime: -1
};
var $tr = fileList.add(fileData);
- expect($tr.find('.date').text()).toEqual('?');
+ expect($tr.find('.date .modified').text()).toEqual('?');
});
it('adds new file to the end of the list', function() {
var $tr;
diff --git a/apps/files_external/tests/js/mountsfilelistSpec.js b/apps/files_external/tests/js/mountsfilelistSpec.js
index 50603081b6a..a4e4fec1177 100644
--- a/apps/files_external/tests/js/mountsfilelistSpec.js
+++ b/apps/files_external/tests/js/mountsfilelistSpec.js
@@ -144,7 +144,7 @@ describe('OCA.External.FileList tests', function() {
'?dir=/mount%20points/smb%20mount'
);
expect($tr.find('.nametext').text().trim()).toEqual('smb mount');
- expect($tr.find('.column-scope').text().trim()).toEqual('Personal');
+ expect($tr.find('.column-scope > span').text().trim()).toEqual('Personal');
expect($tr.find('.column-backend').text().trim()).toEqual('SMB');
});