@ -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' ) ) . toBe Falsy ( ) ;
expect ( $menuEl . find ( '.contact' ) . eq ( 1 ) . find ( '.menu' ) . is ( ':visible' ) ) . toBe Falsy ( ) ;
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 ( ) ;