From 0d98243695439e54e5976bdaa365bfa93a0e85af Mon Sep 17 00:00:00 2001 From: Vadym Pavlyk Date: Tue, 26 Nov 2024 21:46:11 +0200 Subject: [PATCH] Fixed unit tests --- tests/unit/design-system/components/Alert/Alert.spec.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/design-system/components/Alert/Alert.spec.jsx b/tests/unit/design-system/components/Alert/Alert.spec.jsx index 2037d7ed9..7efa9e8b3 100644 --- a/tests/unit/design-system/components/Alert/Alert.spec.jsx +++ b/tests/unit/design-system/components/Alert/Alert.spec.jsx @@ -31,7 +31,7 @@ describe('Alert Component', () => { const handleClose = vi.fn() render() - const closeButton = screen.getByRole('button', { name: /.*close.*/i }) + const closeButton = screen.getByRole('button', { name: 'Close alert' }) expect(closeButton).toBeInTheDocument() })