@@ -5,46 +5,46 @@ test.afterEach("Cleanup session", async ({ page }) => {
55 await page . evaluate ( ( ) => window . mx . session . logout ( ) ) ;
66} ) ;
77
8- test . describe ( "selection-controls -web" , ( ) => {
8+ test . describe ( "checkbox-radio-selection -web" , ( ) => {
99 test . beforeEach ( async ( { page } ) => {
10- await page . goto ( "/p/selectioncontrols " ) ;
10+ await page . goto ( "p/CheckboxRadioSelection " ) ;
1111 await page . waitForLoadState ( "networkidle" ) ;
1212 } ) ;
1313
1414 test . describe ( "data source types" , ( ) => {
15- test ( "renders selection controls using association" , async ( { page } ) => {
16- const selectionControls = page . locator ( ".mx-name-selectionControls1 " ) ;
15+ test ( "renders checkbox radio selection using association" , async ( { page } ) => {
16+ const selectionControls = page . locator ( ".mx-name-checkboxRadioSelection1 " ) ;
1717 await expect ( selectionControls ) . toBeVisible ( { timeout : 10000 } ) ;
18- await expect ( selectionControls ) . toHaveScreenshot ( `selectionControlsAssociation .png` ) ;
18+ await expect ( selectionControls ) . toHaveScreenshot ( `checkboxRadioSelectionAssociation .png` ) ;
1919 } ) ;
2020
21- test ( "renders selection controls using enum" , async ( { page } ) => {
22- const selectionControls = page . locator ( ".mx-name-selectionControls2 " ) ;
21+ test ( "renders checkbox radio selection using enum" , async ( { page } ) => {
22+ const selectionControls = page . locator ( ".mx-name-checkboxRadioSelection2 " ) ;
2323 await expect ( selectionControls ) . toBeVisible ( { timeout : 10000 } ) ;
24- await expect ( selectionControls ) . toHaveScreenshot ( `selectionControlsEnum .png` ) ;
24+ await expect ( selectionControls ) . toHaveScreenshot ( `checkboxRadioSelectionEnum .png` ) ;
2525 } ) ;
2626
27- test ( "renders selection controls using boolean" , async ( { page } ) => {
28- const selectionControls = page . locator ( ".mx-name-selectionControls3 " ) ;
27+ test ( "renders checkbox radio selection using boolean" , async ( { page } ) => {
28+ const selectionControls = page . locator ( ".mx-name-checkboxRadioSelection3 " ) ;
2929 await expect ( selectionControls ) . toBeVisible ( { timeout : 10000 } ) ;
30- await expect ( selectionControls ) . toHaveScreenshot ( `selectionControlsBoolean .png` ) ;
30+ await expect ( selectionControls ) . toHaveScreenshot ( `checkboxRadioSelectionBoolean .png` ) ;
3131 } ) ;
3232
33- test ( "renders selection controls using static values" , async ( { page } ) => {
34- const selectionControls = page . locator ( ".mx-name-selectionControls4 " ) ;
33+ test ( "renders checkbox radio selection using static values" , async ( { page } ) => {
34+ const selectionControls = page . locator ( ".mx-name-checkboxRadioSelection4 " ) ;
3535 await expect ( selectionControls ) . toBeVisible ( { timeout : 10000 } ) ;
36- await expect ( selectionControls ) . toHaveScreenshot ( `selectionControlsStatic .png` ) ;
36+ await expect ( selectionControls ) . toHaveScreenshot ( `checkboxRadioSelectionStatic .png` ) ;
3737 } ) ;
3838
39- test ( "renders selection controls using database" , async ( { page } ) => {
40- const selectionControls = page . locator ( ".mx-name-selectionControls5 " ) ;
39+ test ( "renders checkbox radio selection using database" , async ( { page } ) => {
40+ const selectionControls = page . locator ( ".mx-name-checkboxRadioSelection5 " ) ;
4141 await expect ( selectionControls ) . toBeVisible ( { timeout : 10000 } ) ;
42- await expect ( selectionControls ) . toHaveScreenshot ( `selectionControlsDatabase .png` ) ;
42+ await expect ( selectionControls ) . toHaveScreenshot ( `checkboxRadioSelectionDatabase .png` ) ;
4343 } ) ;
4444
4545 test . describe ( "selection behavior" , ( ) => {
4646 test ( "handles radio button selection" , async ( { page } ) => {
47- const selectionControls = page . locator ( ".mx-name-selectionControls1 " ) ;
47+ const selectionControls = page . locator ( ".mx-name-checkboxRadioSelection1 " ) ;
4848 await expect ( selectionControls ) . toBeVisible ( { timeout : 10000 } ) ;
4949
5050 const radioOption = selectionControls . locator ( 'input[type="radio"]' ) . first ( ) ;
@@ -53,7 +53,7 @@ test.describe("selection-controls-web", () => {
5353 } ) ;
5454
5555 test ( "handles checkbox selection" , async ( { page } ) => {
56- const selectionControls = page . locator ( ".mx-name-selectionControls6 " ) ; // multi selection
56+ const selectionControls = page . locator ( ".mx-name-checkboxRadioSelection6 " ) ; // multi selection
5757 await expect ( selectionControls ) . toBeVisible ( { timeout : 10000 } ) ;
5858
5959 const checkboxOption = selectionControls . locator ( 'input[type="checkbox"]' ) . first ( ) ;
0 commit comments