Thanks to visit codestin.com Credit goes to github.com
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 37e1701 commit aa78f1aCopy full SHA for aa78f1a
site/src/modules/workspaces/WorkspaceOutdatedTooltip/WorkspaceOutdatedTooltip.stories.tsx
@@ -34,14 +34,12 @@ type Story = StoryObj<typeof WorkspaceOutdatedTooltip>;
34
35
const Example: Story = {
36
play: async ({ canvasElement, step }) => {
37
- const screen = within(canvasElement);
+ const body = within(canvasElement.ownerDocument.body);
38
39
await step("activate hover trigger", async () => {
40
- await userEvent.hover(screen.getByRole("button"));
+ await userEvent.hover(body.getByRole("button"));
41
await waitFor(() =>
42
- expect(
43
- screen.getByText(MockTemplateVersion.message),
44
- ).toBeInTheDocument(),
+ expect(body.getByText(MockTemplateVersion.message)).toBeInTheDocument(),
45
);
46
});
47
},
0 commit comments