Skip to content

Commit 8b2579b

Browse files
committed
chore: update rollup config and e2e
1 parent 58a20c2 commit 8b2579b

File tree

5 files changed

+16
-27
lines changed

5 files changed

+16
-27
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-checkboxRadioButton1");
16+
const selectionControls = page.locator(".mx-name-checkboxRadioSelection1");
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-checkboxRadioButton2");
22+
const selectionControls = page.locator(".mx-name-checkboxRadioSelection2");
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-checkboxRadioButton3");
28+
const selectionControls = page.locator(".mx-name-checkboxRadioSelection3");
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-checkboxRadioButton4");
34+
const selectionControls = page.locator(".mx-name-checkboxRadioSelection4");
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-checkboxRadioButton5");
40+
const selectionControls = page.locator(".mx-name-checkboxRadioSelection5");
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-checkboxRadioButton1");
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("checkbox-radio-selection-web", () => {
5353
});
5454

5555
test("handles checkbox selection", async ({ page }) => {
56-
const selectionControls = page.locator(".mx-name-checkboxRadioButton6"); // 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();

packages/pluggableWidgets/checkbox-radio-selection-web/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
"@mendix/eslint-config-web-widgets": "workspace:*",
5555
"@mendix/pluggable-widgets-tools": "*",
5656
"@mendix/prettier-config-web-widgets": "workspace:*",
57+
"@mendix/rollup-web-widgets": "workspace:*",
5758
"@mendix/run-e2e": "workspace:^*",
5859
"@mendix/widget-plugin-component-kit": "workspace:*",
5960
"@mendix/widget-plugin-grid": "workspace:*",

packages/pluggableWidgets/checkbox-radio-selection-web/rollup.config.js

Lines changed: 0 additions & 20 deletions
This file was deleted.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import copyFiles from "@mendix/rollup-web-widgets/copyFiles.mjs";
2+
3+
export default args => {
4+
return copyFiles(args);
5+
};

pnpm-lock.yaml

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)