@@ -156,24 +156,26 @@ test("no console errors on card page", async ({ page }) => {
156156
157157test ( "form component documentation" , async ( { page } ) => {
158158 await page . goto ( `${ BASE } /component.sql?component=form` ) ;
159-
159+
160160 // Find the form that contains radio buttons for component selection
161- const componentForm = page . locator ( ' form' , {
162- has : page . getByRole ( ' radio' , { name : ' Chart' } )
161+ const componentForm = page . locator ( " form" , {
162+ has : page . getByRole ( " radio" , { name : " Chart" } ) ,
163163 } ) ;
164-
164+
165165 // the form should be visible
166166 await expect ( componentForm ) . toBeVisible ( ) ;
167167
168168 // Check that "form" is the first and default selected option
169169 const mapRadio = componentForm . getByRole ( "radio" , { name : "Map" } ) ;
170170 await expect ( mapRadio ) . toHaveValue ( "map" ) ;
171171 await expect ( mapRadio ) . toBeChecked ( ) ;
172-
172+
173173 // Select "Chart" option and submit
174174 await componentForm . getByLabel ( "Chart" ) . click ( { force : true } ) ;
175175 await componentForm . getByRole ( "button" , { name : "Submit" } ) . click ( ) ;
176176
177177 // Verify we're on the chart documentation page
178- await expect ( page . getByRole ( "heading" , { name : / c h a r t / i, level : 1 } ) ) . toBeVisible ( ) ;
178+ await expect (
179+ page . getByRole ( "heading" , { name : / c h a r t / i, level : 1 } ) ,
180+ ) . toBeVisible ( ) ;
179181} ) ;
0 commit comments