From 27b42aaa9a87ee0ff1ec5f33409fa0d12e246c36 Mon Sep 17 00:00:00 2001 From: Gauthier Roebroeck Date: Tue, 29 Jul 2025 14:32:20 +0800 Subject: [PATCH] test: fix tests following aria-label change --- next-ui/src/pages/server/announcements.stories.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/next-ui/src/pages/server/announcements.stories.ts b/next-ui/src/pages/server/announcements.stories.ts index edc24f23..777f2b79 100644 --- a/next-ui/src/pages/server/announcements.stories.ts +++ b/next-ui/src/pages/server/announcements.stories.ts @@ -31,7 +31,7 @@ export const Unread: Story = { play: async ({ canvas }) => { await waitFor(() => expect(canvas.getByText('eBook drop 2')).not.toBeNull()) - await expect(canvas.getByRole('button', { name: 'mark all read' })).toBeEnabled() + await expect(canvas.getByRole('button', { name: /mark all as read/i })).toBeEnabled() }, } @@ -48,7 +48,7 @@ export const NoUnread: Story = { play: async ({ canvas }) => { await waitFor(() => expect(canvas.getByText('eBook drop 2')).not.toBeNull()) - await expect(canvas.queryByRole('button', { name: 'mark all read' })).toBeNull() + await expect(canvas.queryByRole('button', { name: /mark all as read/i })).toBeNull() }, }