@@ -328,7 +328,7 @@ describe('update menus interactions', function() {
328
328
329
329
return Plotly . relayout ( gd , 'updatemenus[1].buttons[1].label' , 'a looooooooooooong<br>label' ) ;
330
330
} ) . then ( function ( ) {
331
- assertItemDims ( selectHeader ( 1 ) , 179 , 34.2 ) ;
331
+ assertItemDims ( selectHeader ( 1 ) , 179 , 35 ) ;
332
332
333
333
return click ( selectHeader ( 1 ) ) ;
334
334
} ) . then ( function ( ) {
@@ -370,21 +370,21 @@ describe('update menus interactions', function() {
370
370
assertNodeCount ( '.' + constants . containerClassName , 1 ) ;
371
371
assertNodeCount ( '.' + constants . headerClassName , expectedMenus . length ) ;
372
372
373
- var gButton = d3 . select ( '.' + constants . buttonGroupClassName ) ,
373
+ var gButton = d3 . select ( '.' + constants . dropdownButtonGroupClassName ) ,
374
374
actualActiveIndex = + gButton . attr ( constants . menuIndexAttrName ) ,
375
375
hasActive = false ;
376
376
377
377
expectedMenus . forEach ( function ( expected , i ) {
378
378
if ( expected ) {
379
379
expect ( actualActiveIndex ) . toEqual ( i ) ;
380
- assertNodeCount ( '.' + constants . buttonClassName , expected ) ;
380
+ assertNodeCount ( '.' + constants . dropdownButtonClassName , expected ) ;
381
381
hasActive = true ;
382
382
}
383
383
} ) ;
384
384
385
385
if ( ! hasActive ) {
386
386
expect ( actualActiveIndex ) . toEqual ( - 1 ) ;
387
- assertNodeCount ( '.' + constants . buttonClassName , 0 ) ;
387
+ assertNodeCount ( '.' + constants . dropdownButtonClassName , 0 ) ;
388
388
}
389
389
}
390
390
@@ -437,7 +437,7 @@ describe('update menus interactions', function() {
437
437
}
438
438
439
439
function selectButton ( buttonIndex ) {
440
- var buttons = d3 . selectAll ( '.' + constants . buttonClassName ) ,
440
+ var buttons = d3 . selectAll ( '.' + constants . dropdownButtonClassName ) ,
441
441
button = d3 . select ( buttons [ 0 ] [ buttonIndex ] ) ;
442
442
return button ;
443
443
}
0 commit comments