diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2017-04-24 08:07:02 +0200 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2017-04-25 20:47:18 +0200 |
commit | 5c61852c2522de25edc8d7d2fbdb9d190053a4b3 (patch) | |
tree | 0ded4f28a695810e4a6dc82a97d2e7ae27bf8603 /core | |
parent | ecd408d5241881842af230b79dddcc135e308dcf (diff) | |
download | nextcloud-server-5c61852c2522de25edc8d7d2fbdb9d190053a4b3.tar.gz nextcloud-server-5c61852c2522de25edc8d7d2fbdb9d190053a4b3.zip |
Fix failing contacts menu js test data
When we test wheter action menus in the contacts menu close
when clicking other ones, we have to provide test data
that actually causes the view to render the menu.
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'core')
-rw-r--r-- | core/js/tests/specs/contactsmenuSpec.js | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/core/js/tests/specs/contactsmenuSpec.js b/core/js/tests/specs/contactsmenuSpec.js index 1db9a6a9554..8749275241a 100644 --- a/core/js/tests/specs/contactsmenuSpec.js +++ b/core/js/tests/specs/contactsmenuSpec.js @@ -194,6 +194,11 @@ describe('Contacts menu', function() { }, actions: [ { + title: 'Info', + icon: 'icon-info', + hyperlink: 'https:\/\/localhost\/index.php\/apps\/contacts' + }, + { title: 'Details', icon: 'icon-info', hyperlink: 'https:\/\/localhost\/index.php\/apps\/contacts' @@ -211,6 +216,11 @@ describe('Contacts menu', function() { }, actions: [ { + title: 'Info', + icon: 'icon-info', + hyperlink: 'https://localhost\/index.php\/apps\/contacts' + }, + { title: 'Details', icon: 'icon-info', hyperlink: 'https://localhost\/index.php\/apps\/contacts' @@ -228,8 +238,8 @@ describe('Contacts menu', function() { expect($menuEl.html()).toContain('Show all contacts …'); // Both menus are closed at the beginning - expect($menuEl.find('.contact').eq(0).find('.menu').is(':visible')).toBeFalsy(); - expect($menuEl.find('.contact').eq(1).find('.menu').is(':visible')).toBeFalsy(); + expect($menuEl.find('.contact').eq(0).find('.menu').is(':visible')).toBe(false); + expect($menuEl.find('.contact').eq(1).find('.menu').is(':visible')).toBe(false); // Open the first one $menuEl.find('.contact').eq(0).find('.other-actions').click(); |