We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd90740 commit a602c72Copy full SHA for a602c72
site/src/pages/DeploySettingsPage/NotificationsPage/NotificationsPage.stories.tsx
@@ -95,7 +95,11 @@ export const Toggle: Story = {
95
const user = userEvent.setup();
96
const canvas = within(canvasElement);
97
const option = await canvas.findByText("Workspace Marked as Dormant");
98
- const toggleButton = within(option.closest("li")!).getByRole("button", {
+ const li = option.closest("li");
99
+ if(!li) {
100
+ throw new Error("Could not find li");
101
+ }
102
+ const toggleButton = within(li).getByRole("button", {
103
name: "Webhook",
104
});
105
await user.click(toggleButton);
0 commit comments