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 21, 2023
1 parent 5f5bec1 commit 2fab2c4
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { GetPathVal, StreamScope } from "@yext/studio-plugin";

const initialPageData: AddPageData = {
isStatic: true,
pageName: ""
pageName: "",
};

export default function AddPageContextProvider(props: PropsWithChildren) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,17 @@ export default function LayoutSelector({

const selectClasses = twMerge(selectCssClasses, "w-full mb-6");
const body = (
<select
className={selectClasses}
onChange={handleChange}
aria-label="Layout picker"
<select
className={selectClasses}
onChange={handleChange}
aria-label="Layout picker"
>
<option key="" value="">
No layout selected
</option>
{Object.keys(layouts).map((layoutName) => (
<option
key={layoutName}
<option
key={layoutName}
value={layoutName}
aria-label={`${layoutName} layout`}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,9 @@ describe("errors", () => {
await userEvent.click(addPageButton);
const textbox = screen.getByRole("textbox");
await userEvent.type(textbox, "universal");
const basicPageDataNextButton = screen.getByRole("button", { name: "Next" });
const basicPageDataNextButton = screen.getByRole("button", {
name: "Next",
});
await userEvent.click(basicPageDataNextButton);
expect(
screen.getByText('Page name "universal" is already used.')
Expand All @@ -322,7 +324,9 @@ describe("errors", () => {
await userEvent.click(addPageButton);
const textbox = screen.getByRole("textbox");
await userEvent.type(textbox, "***");
const basicPageDataNextButton = screen.getByRole("button", { name: "Next" });
const basicPageDataNextButton = screen.getByRole("button", {
name: "Next",
});
await userEvent.click(basicPageDataNextButton);
expect(
screen.getByText("Page name cannot contain the characters: *")
Expand Down

0 comments on commit 2fab2c4

Please sign in to comment.