@@ -339,7 +339,7 @@ describe('update menus interactions', function() {
339
339
340
340
return Plotly . relayout ( gd , 'updatemenus[1].buttons[1].label' , 'a looooooooooooong<br>label' ) ;
341
341
} ) . then ( function ( ) {
342
- assertItemDims ( selectHeader ( 1 ) , 179 , 34.2 ) ;
342
+ assertItemDims ( selectHeader ( 1 ) , 179 , 35 ) ;
343
343
344
344
return click ( selectHeader ( 1 ) ) ;
345
345
} ) . then ( function ( ) {
@@ -381,21 +381,21 @@ describe('update menus interactions', function() {
381
381
assertNodeCount ( '.' + constants . containerClassName , 1 ) ;
382
382
assertNodeCount ( '.' + constants . headerClassName , expectedMenus . length ) ;
383
383
384
- var gButton = d3 . select ( '.' + constants . buttonGroupClassName ) ,
384
+ var gButton = d3 . select ( '.' + constants . dropdownButtonGroupClassName ) ,
385
385
actualActiveIndex = + gButton . attr ( constants . menuIndexAttrName ) ,
386
386
hasActive = false ;
387
387
388
388
expectedMenus . forEach ( function ( expected , i ) {
389
389
if ( expected ) {
390
390
expect ( actualActiveIndex ) . toEqual ( i ) ;
391
- assertNodeCount ( '.' + constants . buttonClassName , expected ) ;
391
+ assertNodeCount ( '.' + constants . dropdownButtonClassName , expected ) ;
392
392
hasActive = true ;
393
393
}
394
394
} ) ;
395
395
396
396
if ( ! hasActive ) {
397
397
expect ( actualActiveIndex ) . toEqual ( - 1 ) ;
398
- assertNodeCount ( '.' + constants . buttonClassName , 0 ) ;
398
+ assertNodeCount ( '.' + constants . dropdownButtonClassName , 0 ) ;
399
399
}
400
400
}
401
401
@@ -448,7 +448,7 @@ describe('update menus interactions', function() {
448
448
}
449
449
450
450
function selectButton ( buttonIndex ) {
451
- var buttons = d3 . selectAll ( '.' + constants . buttonClassName ) ,
451
+ var buttons = d3 . selectAll ( '.' + constants . dropdownButtonClassName ) ,
452
452
button = d3 . select ( buttons [ 0 ] [ buttonIndex ] ) ;
453
453
return button ;
454
454
}
0 commit comments