Skip to content

Commit ca03555

Browse files
committed
test(checkbox-radio-selection-web): fix e2e tests
1 parent c67e236 commit ca03555

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

packages/pluggableWidgets/checkbox-radio-selection-web/e2e/SelectionControls.spec.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,38 +13,38 @@ test.describe("checkbox-radio-selection-web", () => {
1313

1414
test.describe("data source types", () => {
1515
test("renders checkbox radio selection using association", async ({ page }) => {
16-
const selectionControls = page.locator(".mx-name-checkboxRadioSelection1");
16+
const selectionControls = page.locator(".mx-name-checkboxRadioButton1");
1717
await expect(selectionControls).toBeVisible({ timeout: 10000 });
1818
await expect(selectionControls).toHaveScreenshot(`checkboxRadioSelectionAssociation.png`);
1919
});
2020

2121
test("renders checkbox radio selection using enum", async ({ page }) => {
22-
const selectionControls = page.locator(".mx-name-checkboxRadioSelection2");
22+
const selectionControls = page.locator(".mx-name-checkboxRadioButton2");
2323
await expect(selectionControls).toBeVisible({ timeout: 10000 });
2424
await expect(selectionControls).toHaveScreenshot(`checkboxRadioSelectionEnum.png`);
2525
});
2626

2727
test("renders checkbox radio selection using boolean", async ({ page }) => {
28-
const selectionControls = page.locator(".mx-name-checkboxRadioSelection3");
28+
const selectionControls = page.locator(".mx-name-checkboxRadioButton3");
2929
await expect(selectionControls).toBeVisible({ timeout: 10000 });
3030
await expect(selectionControls).toHaveScreenshot(`checkboxRadioSelectionBoolean.png`);
3131
});
3232

3333
test("renders checkbox radio selection using static values", async ({ page }) => {
34-
const selectionControls = page.locator(".mx-name-checkboxRadioSelection4");
34+
const selectionControls = page.locator(".mx-name-checkboxRadioButton4");
3535
await expect(selectionControls).toBeVisible({ timeout: 10000 });
3636
await expect(selectionControls).toHaveScreenshot(`checkboxRadioSelectionStatic.png`);
3737
});
3838

3939
test("renders checkbox radio selection using database", async ({ page }) => {
40-
const selectionControls = page.locator(".mx-name-checkboxRadioSelection5");
40+
const selectionControls = page.locator(".mx-name-checkboxRadioButton5");
4141
await expect(selectionControls).toBeVisible({ timeout: 10000 });
4242
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-checkboxRadioSelection1");
47+
const selectionControls = page.locator(".mx-name-checkboxRadioButton1");
4848
await expect(selectionControls).toBeVisible({ timeout: 10000 });
4949

5050
const radioOption = selectionControls.locator('input[type="radio"]').first();
@@ -53,7 +53,7 @@ test.describe("checkbox-radio-selection-web", () => {
5353
});
5454

5555
test("handles checkbox selection", async ({ page }) => {
56-
const selectionControls = page.locator(".mx-name-checkboxRadioSelection6"); // multi selection
56+
const selectionControls = page.locator(".mx-name-checkboxRadioButton6"); // multi selection
5757
await expect(selectionControls).toBeVisible({ timeout: 10000 });
5858

5959
const checkboxOption = selectionControls.locator('input[type="checkbox"]').first();

0 commit comments

Comments
 (0)