Link user menu to the signed-in user's profile page

This commit is contained in:
Aaron Po
2026-09-12 15:09:35 -04:00
parent 6f1dfce625
commit 84232b5a47
3 changed files with 14 additions and 2 deletions

View File

@@ -47,6 +47,7 @@ export const Authenticated: Story = {
const userButton = canvas.getByRole('button', { name: /hans/i });
await expect(userButton).toBeInTheDocument();
await userEvent.click(userButton);
await expect(canvas.getByRole('menuitem', { name: /my profile/i })).toBeInTheDocument();
await expect(canvas.getByRole('menuitem', { name: /dashboard/i })).toBeInTheDocument();
await expect(canvas.getByRole('menuitem', { name: /logout/i })).toBeInTheDocument();
},