summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2014-12-18 01:27:58 +0100
committerMorris Jobke <hey@morrisjobke.de>2014-12-18 01:27:58 +0100
commitec0401f97b39f12b611c997e39039420b085969c (patch)
tree3b23eb8ab6a799254511da8141331cc808bf961a /apps
parent82f8726903c69b3a91f1c769d469197353ce1945 (diff)
downloadnextcloud-server-ec0401f97b39f12b611c997e39039420b085969c.tar.gz
nextcloud-server-ec0401f97b39f12b611c997e39039420b085969c.zip
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');
});