Adds Redux and React-Intl to storybook (#35094)

This commit is contained in:
Echo authored and GitHub committed 2025-06-24 09:31:27 +00:00
1 parent c4128d89c9
commit 8ee8231a43
10 files changed
+876 -53

No files matched your search

@@ -36,7 +36,8 @@ export default meta;
type Story = StoryObj<typeof meta>;
const buttonTest: Story['play'] = async ({ args, canvas, userEvent }) => {
await userEvent.click(canvas.getByRole('button'));
const button = await canvas.findByRole('button');
await userEvent.click(button);
await expect(args.onClick).toHaveBeenCalled();
};
@@ -45,7 +46,8 @@ const disabledButtonTest: Story['play'] = async ({
canvas,
userEvent,
}) => {
await userEvent.click(canvas.getByRole('button'));
const button = await canvas.findByRole('button');
await userEvent.click(button);
await expect(args.onClick).not.toHaveBeenCalled();
};