@@ -339,7 +339,7 @@ describe('update menus interactions', function() {
339339
340340 return Plotly . relayout ( gd , 'updatemenus[1].buttons[1].label' , 'a looooooooooooong<br>label' ) ;
341341 } ) . then ( function ( ) {
342- assertItemDims ( selectHeader ( 1 ) , 179 , 34.2 ) ;
342+ assertItemDims ( selectHeader ( 1 ) , 179 , 35 ) ;
343343
344344 return click ( selectHeader ( 1 ) ) ;
345345 } ) . then ( function ( ) {
@@ -381,21 +381,21 @@ describe('update menus interactions', function() {
381381 assertNodeCount ( '.' + constants . containerClassName , 1 ) ;
382382 assertNodeCount ( '.' + constants . headerClassName , expectedMenus . length ) ;
383383
384- var gButton = d3 . select ( '.' + constants . buttonGroupClassName ) ,
384+ var gButton = d3 . select ( '.' + constants . dropdownButtonGroupClassName ) ,
385385 actualActiveIndex = + gButton . attr ( constants . menuIndexAttrName ) ,
386386 hasActive = false ;
387387
388388 expectedMenus . forEach ( function ( expected , i ) {
389389 if ( expected ) {
390390 expect ( actualActiveIndex ) . toEqual ( i ) ;
391- assertNodeCount ( '.' + constants . buttonClassName , expected ) ;
391+ assertNodeCount ( '.' + constants . dropdownButtonClassName , expected ) ;
392392 hasActive = true ;
393393 }
394394 } ) ;
395395
396396 if ( ! hasActive ) {
397397 expect ( actualActiveIndex ) . toEqual ( - 1 ) ;
398- assertNodeCount ( '.' + constants . buttonClassName , 0 ) ;
398+ assertNodeCount ( '.' + constants . dropdownButtonClassName , 0 ) ;
399399 }
400400 }
401401
@@ -448,7 +448,7 @@ describe('update menus interactions', function() {
448448 }
449449
450450 function selectButton ( buttonIndex ) {
451- var buttons = d3 . selectAll ( '.' + constants . buttonClassName ) ,
451+ var buttons = d3 . selectAll ( '.' + constants . dropdownButtonClassName ) ,
452452 button = d3 . select ( buttons [ 0 ] [ buttonIndex ] ) ;
453453 return button ;
454454 }
0 commit comments