@@ -7,8 +7,9 @@ test.afterEach("Cleanup session", async ({ page }) => {
77
88test . describe ( "checkbox-radio-selection-web" , ( ) => {
99 test . beforeEach ( async ( { page } ) => {
10- await page . goto ( "p/CheckboxRadioSelection " ) ;
10+ await page . goto ( "/p/checkboxradioselection " ) ;
1111 await page . waitForLoadState ( "networkidle" ) ;
12+ await page . click ( ".mx-name-actionButton1" ) ;
1213 } ) ;
1314
1415 test . describe ( "data source types" , ( ) => {
@@ -31,20 +32,38 @@ test.describe("checkbox-radio-selection-web", () => {
3132 } ) ;
3233
3334 test ( "renders checkbox radio selection using static values" , async ( { page } ) => {
35+ await page . reload ( ) ;
36+ await page . click ( ".mx-name-actionButton1" , { timeout : 10000 } ) ;
37+ await page . waitForLoadState ( "networkidle" , { timeout : 10000 } ) ;
38+ const tabPage2 = page . getByRole ( "tab" , { name : "Page 2" } ) ;
39+ await expect ( tabPage2 ) . toBeVisible ( { timeout : 10000 } ) ;
40+ await tabPage2 . click ( ) ;
3441 const selectionControls = page . locator ( ".mx-name-checkboxRadioSelection4" ) ;
3542 await expect ( selectionControls ) . toBeVisible ( { timeout : 10000 } ) ;
3643 await expect ( selectionControls ) . toHaveScreenshot ( `checkboxRadioSelectionStatic.png` ) ;
3744 } ) ;
3845
3946 test ( "renders checkbox radio selection using database" , async ( { page } ) => {
47+ await page . reload ( ) ;
48+ await page . click ( ".mx-name-actionButton1" , { timeout : 10000 } ) ;
49+ await page . waitForLoadState ( "networkidle" , { timeout : 10000 } ) ;
50+ const tabPage2 = page . getByRole ( "tab" , { name : "Page 2" } ) ;
51+ await expect ( tabPage2 ) . toBeVisible ( { timeout : 10000 } ) ;
52+ await tabPage2 . click ( ) ;
4053 const selectionControls = page . locator ( ".mx-name-checkboxRadioSelection5" ) ;
4154 await expect ( selectionControls ) . toBeVisible ( { timeout : 10000 } ) ;
4255 await expect ( selectionControls ) . toHaveScreenshot ( `checkboxRadioSelectionDatabase.png` ) ;
4356 } ) ;
4457
4558 test . describe ( "selection behavior" , ( ) => {
4659 test ( "handles radio button selection" , async ( { page } ) => {
47- const selectionControls = page . locator ( ".mx-name-checkboxRadioSelection1" ) ;
60+ await page . reload ( ) ;
61+ await page . click ( ".mx-name-actionButton1" , { timeout : 10000 } ) ;
62+ await page . waitForLoadState ( "networkidle" , { timeout : 10000 } ) ;
63+ const tabPage2 = page . getByRole ( "tab" , { name : "Page 2" } ) ;
64+ await expect ( tabPage2 ) . toBeVisible ( { timeout : 10000 } ) ;
65+ await tabPage2 . click ( ) ;
66+ const selectionControls = page . locator ( ".mx-name-checkboxRadioSelection5" ) ;
4867 await expect ( selectionControls ) . toBeVisible ( { timeout : 10000 } ) ;
4968
5069 const radioOption = selectionControls . locator ( 'input[type="radio"]' ) . first ( ) ;
@@ -53,7 +72,7 @@ test.describe("checkbox-radio-selection-web", () => {
5372 } ) ;
5473
5574 test ( "handles checkbox selection" , async ( { page } ) => {
56- const selectionControls = page . locator ( ".mx-name-checkboxRadioSelection6 " ) ; // multi selection
75+ const selectionControls = page . locator ( ".mx-name-checkboxRadioSelection1 " ) ; // multi selection
5776 await expect ( selectionControls ) . toBeVisible ( { timeout : 10000 } ) ;
5877
5978 const checkboxOption = selectionControls . locator ( 'input[type="checkbox"]' ) . first ( ) ;
0 commit comments