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");