diff options
author | Julius Härtl <jus@bitgrid.net> | 2018-10-15 19:18:20 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2018-10-15 19:18:20 +0200 |
commit | c316eb6b978b53ac51672dff49a528efac073d08 (patch) | |
tree | f062fa5f50399e68ba0503d88d2c6e7c5cf75bc3 /apps/files/tests | |
parent | a1b74492027cf0a9a91fe29f660939fab9ef7faa (diff) | |
download | nextcloud-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.js | 2 |
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({ |