mirror of
https://github.com/nextcloud/server.git
synced 2026-03-09 01:40:53 -04:00
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>
This commit is contained in:
parent
ecd408d524
commit
5c61852c25
1 changed files with 12 additions and 2 deletions
|
|
@ -193,6 +193,11 @@ describe('Contacts menu', function() {
|
|||
hyperlink: 'mailto:deboraoliver%40centrexin.com'
|
||||
},
|
||||
actions: [
|
||||
{
|
||||
title: 'Info',
|
||||
icon: 'icon-info',
|
||||
hyperlink: 'https:\/\/localhost\/index.php\/apps\/contacts'
|
||||
},
|
||||
{
|
||||
title: 'Details',
|
||||
icon: 'icon-info',
|
||||
|
|
@ -210,6 +215,11 @@ describe('Contacts menu', function() {
|
|||
hyperlink: 'mailto:ceciliasoto%40essensia.com'
|
||||
},
|
||||
actions: [
|
||||
{
|
||||
title: 'Info',
|
||||
icon: 'icon-info',
|
||||
hyperlink: 'https://localhost\/index.php\/apps\/contacts'
|
||||
},
|
||||
{
|
||||
title: 'Details',
|
||||
icon: 'icon-info',
|
||||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue