chore(storybook): tweak sleep duration in `MkChannelFollowButton` story test

This commit is contained in:
zyoshoka 2024-05-21 18:28:57 +09:00
parent ed0733f610
commit 201dd36377
No known key found for this signature in database
GPG Key ID: 0C2CB8FBA309A5B8
1 changed files with 2 additions and 2 deletions

View File

@ -47,12 +47,12 @@ export const Default = {
}, },
async play({ canvasElement }) { async play({ canvasElement }) {
await s.acquire(); await s.acquire();
await sleep(100); await sleep(1000);
const canvas = within(canvasElement); const canvas = within(canvasElement);
const buttonElement = canvas.getByRole<HTMLButtonElement>('button'); const buttonElement = canvas.getByRole<HTMLButtonElement>('button');
await expect(buttonElement).toHaveTextContent(i18n.ts.follow); await expect(buttonElement).toHaveTextContent(i18n.ts.follow);
await userEvent.click(buttonElement); await userEvent.click(buttonElement);
await sleep(100); await sleep(1000);
await expect(buttonElement).toHaveTextContent(i18n.ts.unfollow); await expect(buttonElement).toHaveTextContent(i18n.ts.unfollow);
await sleep(100); await sleep(100);
await userEvent.click(buttonElement); await userEvent.click(buttonElement);