summaryrefslogtreecommitdiffstats
path: root/apps/files/tests
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2018-10-15 19:18:20 +0200
committerJulius Härtl <jus@bitgrid.net>2018-10-15 19:18:20 +0200
commitc316eb6b978b53ac51672dff49a528efac073d08 (patch)
treef062fa5f50399e68ba0503d88d2c6e7c5cf75bc3 /apps/files/tests
parenta1b74492027cf0a9a91fe29f660939fab9ef7faa (diff)
downloadnextcloud-server-c316eb6b978b53ac51672dff49a528efac073d08.tar.gz
nextcloud-server-c316eb6b978b53ac51672dff49a528efac073d08.zip
Tests: Properly compare the file action label
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/files/tests')
-rw-r--r--apps/files/tests/js/fileactionsmenuSpec.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/tests/js/fileactionsmenuSpec.js b/apps/files/tests/js/fileactionsmenuSpec.js
index f171f2848f8..2d31f24a1b3 100644
--- a/apps/files/tests/js/fileactionsmenuSpec.js
+++ b/apps/files/tests/js/fileactionsmenuSpec.js
@@ -203,7 +203,7 @@ describe('OCA.Files.FileActionsMenu tests', function() {
expect(displayNameStub.calledOnce).toEqual(true);
expect(displayNameStub.calledWith(menuContext)).toEqual(true);
- expect(menu.$el.find('a[data-action=Something]').text()).toEqual('Test');
+ expect(menu.$el.find('a[data-action=Something] span:not(.icon)').text()).toEqual('Test');
});
it('uses plain iconClass', function() {
fileActions.registerAction({