diff --git a/packages/frontend/src/components/global/MkA.stories.impl.ts b/packages/frontend/src/components/global/MkA.stories.impl.ts
index b1a88be5a..3afec7f81 100644
--- a/packages/frontend/src/components/global/MkA.stories.impl.ts
+++ b/packages/frontend/src/components/global/MkA.stories.impl.ts
@@ -25,15 +25,6 @@ export const Default = {
template: 'Text',
};
},
- args: {
- to: '#test',
- },
- parameters: {
- layout: 'centered',
- },
-} satisfies StoryObj;
-export const ContextMenu = {
- ...Default,
async play({ canvasElement }) {
const canvas = within(canvasElement);
const a = canvas.getByRole('link');
@@ -42,5 +33,14 @@ export const ContextMenu = {
await tick();
const menu = canvas.getByRole('menu');
await expect(menu).toBeInTheDocument();
+ await userEvent.click(a, { button: 0 });
+ await tick();
+ await expect(menu).not.toBeInTheDocument();
+ },
+ args: {
+ to: '#test',
+ },
+ parameters: {
+ layout: 'centered',
},
} satisfies StoryObj;
diff --git a/packages/frontend/src/components/global/MkA.stories.ts b/packages/frontend/src/components/global/MkA.stories.ts
index ce648f2d5..5bb6b3b5a 100644
--- a/packages/frontend/src/components/global/MkA.stories.ts
+++ b/packages/frontend/src/components/global/MkA.stories.ts
@@ -41,6 +41,9 @@ export const Default = {
await tick();
const menu = canvas.getByRole('menu');
await expect(menu).toBeInTheDocument();
+ await userEvent.click(a, { button: 0 });
+ await tick();
+ await expect(menu).not.toBeInTheDocument();
},
args: {
to: '#test',