From c8fbdc5bba6e9400c407e77f62e0d9b7f0450ecc Mon Sep 17 00:00:00 2001 From: Aleksandr Gumroian Date: Mon, 29 Apr 2024 14:26:18 +0200 Subject: [PATCH] Fix tests --- src/context/alertContext/__tests__/AlertContext.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/context/alertContext/__tests__/AlertContext.test.js b/src/context/alertContext/__tests__/AlertContext.test.js index c1c67bb..2bec602 100644 --- a/src/context/alertContext/__tests__/AlertContext.test.js +++ b/src/context/alertContext/__tests__/AlertContext.test.js @@ -48,7 +48,7 @@ describe("AlertContext", () => { // Alert is present expect(getByText(componentContainer, "Alert content")).toBeDefined(); - fireEvent.click(componentContainer.querySelector(".close")); + fireEvent.click(componentContainer.querySelector(".btn-close")); // Alert is gone expect(queryByText(componentContainer, "Alert content")).toBeNull(); });