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(); });