fix(storybook): solve test failures (#11262)
* fix(locales, storybook): use default import * fix(storybook): solve test failures * Update MkAd.stories.impl.ts
This commit is contained in:

committed by
GitHub

parent
cd9affd568
commit
b6a432fd7b
@@ -29,11 +29,11 @@ export const Default = {
|
||||
const canvas = within(canvasElement);
|
||||
const a = canvas.getByRole<HTMLAnchorElement>('link');
|
||||
await expect(a.href).toMatch(/^https?:\/\/.*#test$/);
|
||||
await userEvent.click(a, { button: 2 });
|
||||
await userEvent.pointer({ keys: '[MouseRight]', target: a });
|
||||
await tick();
|
||||
const menu = canvas.getByRole('menu');
|
||||
await expect(menu).toBeInTheDocument();
|
||||
await userEvent.click(a, { button: 0 });
|
||||
await userEvent.click(a);
|
||||
a.blur();
|
||||
await tick();
|
||||
await expect(menu).not.toBeInTheDocument();
|
||||
|
Reference in New Issue
Block a user