@@ -47,13 +47,13 @@ describe("StartEditingButtonComponent", () => {
4747 } ) ;
4848
4949 test ( "should not render when enable is false" , async ( ) => {
50- Config . set ( "editButtonBuilder .enable" , false ) ;
50+ Config . set ( "editInVisualBuilderButton .enable" , false ) ;
5151 const { container } = await asyncRender ( < StartEditingButtonComponent /> ) ;
5252 expect ( container ) . toBeEmptyDOMElement ( ) ;
5353 } ) ;
5454
5555 test ( "should render when enable is true" , async ( ) => {
56- Config . set ( "editButtonBuilder .enable" , true ) ;
56+ Config . set ( "editInVisualBuilderButton .enable" , true ) ;
5757 const { getByTestId } = await asyncRender ( < StartEditingButtonComponent /> ) ;
5858 const button = getByTestId ( "vcms-start-editing-btn" ) ;
5959 expect ( button ) . toBeInTheDocument ( ) ;
@@ -82,15 +82,15 @@ describe("StartEditingButtonComponent", () => {
8282 expect ( getEditButtonPosition ( invalidPosition ) ) . toBe ( 'bottom-right' ) ;
8383 } ) ;
8484
85- test ( "should render with default values when editButtonBuilder config is missing" , async ( ) => {
85+ test ( "should render with default values when editInVisualBuilderButton config is missing" , async ( ) => {
8686 Config . reset ( ) ;
8787 Config . set ( "stackDetails.apiKey" , "bltapikey" ) ;
8888 Config . set ( "stackDetails.environment" , "bltenvironment" ) ;
8989
9090 const { getByTestId } = await asyncRender ( < StartEditingButtonComponent /> ) ;
9191 const button = getByTestId ( "vcms-start-editing-btn" ) ;
9292
93- expect ( Config . get ( ) . editButtonBuilder . position ) . toBe ( "bottom-right" )
93+ expect ( Config . get ( ) . editInVisualBuilderButton . position ) . toBe ( "bottom-right" )
9494 expect ( button ) . toBeInTheDocument ( ) ;
9595 } ) ;
9696
0 commit comments