test: fix tests following aria-label change

This commit is contained in:
Gauthier Roebroeck 2025-07-29 14:32:20 +08:00
parent 341667a512
commit 27b42aaa9a

View file

@ -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()
},
}