Skip to content

fix(site): only show method warning if some template is using it #14565

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Sep 6, 2024
Next Next commit
Fix lint error
  • Loading branch information
BrunoQuaresma committed Sep 4, 2024
commit a602c72f1c7d55bea0c20341d77c262796bef2be
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,11 @@ export const Toggle: Story = {
const user = userEvent.setup();
const canvas = within(canvasElement);
const option = await canvas.findByText("Workspace Marked as Dormant");
const toggleButton = within(option.closest("li")!).getByRole("button", {
const li = option.closest("li");
if(!li) {
throw new Error("Could not find li");
}
const toggleButton = within(li).getByRole("button", {
name: "Webhook",
});
await user.click(toggleButton);
Expand Down