Skip to content

Commit

Permalink
Automated linting update and features.json sync
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Sep 20, 2023
1 parent 28cd2f3 commit c3129ab
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion e2e-tests/tests/__fixtures__/add-layout-page-expected.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ export default function LayoutPage() {
backgroundColor="#BAD8FD"
/>
);
}
}
2 changes: 1 addition & 1 deletion e2e-tests/tests/add-page-with-layout.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
8 changes: 5 additions & 3 deletions e2e-tests/tests/infra/StudioPlaywrightPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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");
Expand Down

0 comments on commit c3129ab

Please sign in to comment.