@@ -13,17 +13,16 @@ Layouts.forEach(Layout => {
1313 describe ( `<${ Layout . displayName } >` , ( ) => {
1414 it ( `wraps container with fullValue pointing to gd._fullLayout` , ( ) => {
1515 const wrapper = mount (
16- < Editor { ...fixtures . scatter ( { layout : { width : 100 } } ) } >
16+ < Editor { ...fixtures . scatter ( { layout : { height : 100 } } ) } >
1717 < PlotlyPanel >
1818 < Layout >
19- < Numeric label = "Width " min = { 100 } step = { 10 } attr = "width " />
19+ < Numeric label = "Height " min = { 100 } step = { 10 } attr = "height " />
2020 </ Layout >
2121 </ PlotlyPanel >
2222 </ Editor >
2323 )
24- . find ( '[attr="width "]' )
24+ . find ( '[attr="height "]' )
2525 . find ( NumericInput ) ;
26-
2726 expect ( wrapper . prop ( 'value' ) ) . toBe ( 100 ) ;
2827 } ) ;
2928
@@ -32,22 +31,22 @@ Layouts.forEach(Layout => {
3231 const wrapper = mount (
3332 < Editor
3433 beforeUpdateLayout = { beforeUpdateLayout }
35- { ...fixtures . scatter ( { layout : { width : 100 } } ) }
34+ { ...fixtures . scatter ( { layout : { height : 100 } } ) }
3635 >
3736 < PlotlyPanel >
3837 < Layout >
39- < Numeric label = "Width " min = { 100 } step = { 10 } attr = "width " />
38+ < Numeric label = "Height " min = { 100 } step = { 10 } attr = "height " />
4039 </ Layout >
4140 </ PlotlyPanel >
4241 </ Editor >
4342 )
44- . find ( '[attr="width "]' )
43+ . find ( '[attr="height "]' )
4544 . find ( NumericInput ) ;
4645
47- const widthUpdate = 200 ;
48- wrapper . prop ( 'onChange' ) ( widthUpdate ) ;
46+ const heightUpdate = 200 ;
47+ wrapper . prop ( 'onChange' ) ( heightUpdate ) ;
4948 const payload = beforeUpdateLayout . mock . calls [ 0 ] [ 0 ] ;
50- expect ( payload ) . toEqual ( { update : { width : widthUpdate } } ) ;
49+ expect ( payload ) . toEqual ( { update : { height : heightUpdate } } ) ;
5150 } ) ;
5251 } ) ;
5352} ) ;
0 commit comments