From c3129ab13cf04f711710195e28305fca04d464b1 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 20 Sep 2023 15:33:54 +0000 Subject: [PATCH] Automated linting update and features.json sync --- e2e-tests/tests/__fixtures__/add-layout-page-expected.tsx | 2 +- e2e-tests/tests/add-page-with-layout.spec.ts | 2 +- e2e-tests/tests/infra/StudioPlaywrightPage.ts | 8 +++++--- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/e2e-tests/tests/__fixtures__/add-layout-page-expected.tsx b/e2e-tests/tests/__fixtures__/add-layout-page-expected.tsx index 5766a5cb8..f5057e75e 100644 --- a/e2e-tests/tests/__fixtures__/add-layout-page-expected.tsx +++ b/e2e-tests/tests/__fixtures__/add-layout-page-expected.tsx @@ -13,4 +13,4 @@ export default function LayoutPage() { backgroundColor="#BAD8FD" /> ); -} \ No newline at end of file +} diff --git a/e2e-tests/tests/add-page-with-layout.spec.ts b/e2e-tests/tests/add-page-with-layout.spec.ts index f7b10f19e..7828987ed 100644 --- a/e2e-tests/tests/add-page-with-layout.spec.ts +++ b/e2e-tests/tests/add-page-with-layout.spec.ts @@ -8,7 +8,7 @@ const expectedPage = fs.readFileSync( ); studioTest("can add a page using a layout", async ({ page, studioPage }) => { - const pageName = "LayoutPage" + const pageName = "LayoutPage"; await studioPage.takePageScreenshotAfterImgRender(); const pageInTree = page.getByText(pageName); await expect(pageInTree).toHaveCount(0); diff --git a/e2e-tests/tests/infra/StudioPlaywrightPage.ts b/e2e-tests/tests/infra/StudioPlaywrightPage.ts index 6ff29ddd7..076466702 100644 --- a/e2e-tests/tests/infra/StudioPlaywrightPage.ts +++ b/e2e-tests/tests/infra/StudioPlaywrightPage.ts @@ -63,7 +63,7 @@ export default class StudioPlaywrightPage { await this.addPageButton.click(); await this.selectPageType(false); await this.enterBasicPageData(pageName, urlSlug); - await this.selectLayout(layoutName) + await this.selectLayout(layoutName); } async addEntityPage( @@ -122,8 +122,10 @@ export default class StudioPlaywrightPage { const modalName = "Select Layout"; await this.takePageScreenshotAfterImgRender(); if (layoutName) { - const layoutModal = this.page.getByRole("dialog", {name: modalName}) - await layoutModal.getByRole("combobox").selectOption({label: layoutName}) + const layoutModal = this.page.getByRole("dialog", { name: modalName }); + await layoutModal + .getByRole("combobox") + .selectOption({ label: layoutName }); await this.takePageScreenshotAfterImgRender(); } await this.clickModalButton(modalName, "Save");