1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-30 19:13:58 +02:00

fix(storybook): prevent infinite remount of component (#14101)

* fix(storybook): prevent infinite remount of component

* fix: disable flaky `.toMatch()` test
This commit is contained in:
zyoshoka
2024-07-02 10:57:20 +09:00
committed by GitHub
parent a6edd50a5d
commit f1b1e2a7cc
7 changed files with 41 additions and 92 deletions

View File

@@ -35,12 +35,10 @@ export const Default = {
// FIXME: 通るけどその後落ちるのでコメントアウト
// await expect(a.href).toMatch(/^https?:\/\/.*#test$/);
await userEvent.pointer({ keys: '[MouseRight]', target: a });
await tick();
const menu = canvas.getByRole('menu');
await expect(menu).toBeInTheDocument();
await userEvent.click(a);
a.blur();
await tick();
await expect(menu).not.toBeInTheDocument();
},
args: {