diff --git a/app/components/elements/Toast.browser.test.tsx b/app/components/elements/Toast.browser.test.tsx index abc869573..9a7bf8716 100644 --- a/app/components/elements/Toast.browser.test.tsx +++ b/app/components/elements/Toast.browser.test.tsx @@ -33,7 +33,7 @@ describe("Toast", () => { toastQueue.add({ message: "Dismiss me", variant: "info" }, { timeout: 0 }); - const toast = screen.getByRole("alert").filter({ hasText: "Dismiss me" }); + const toast = screen.getByRole("status").filter({ hasText: "Dismiss me" }); await expect.element(toast).toBeVisible(); await screen.getByLabelText("Close").first().click(); diff --git a/app/components/elements/Toast.tsx b/app/components/elements/Toast.tsx index b5b4d1422..e893483eb 100644 --- a/app/components/elements/Toast.tsx +++ b/app/components/elements/Toast.tsx @@ -99,7 +99,7 @@ export function SendouToastRegion() { {toasts.map((toast) => (