diff --git a/frontend/test/unit/specs/components/v-modal.spec.js b/frontend/test/unit/specs/components/v-modal.spec.js index 52c3b9624a8..7907438da4d 100644 --- a/frontend/test/unit/specs/components/v-modal.spec.js +++ b/frontend/test/unit/specs/components/v-modal.spec.js @@ -112,7 +112,7 @@ describe("VModal", () => { await doOpen() expect(getDialog()).toBeVisible() - expect(() => screen.getByText(/custom initial focus/i)).not.toThrow() + expect(screen.getByText(/custom initial focus/i)).toHaveFocus() }) it("should hide the modal on escape", async () => {