Skip to content

Commit

Permalink
Use expect with getBy* (#4018)
Browse files Browse the repository at this point in the history
Signed-off-by: Olga Bulat <[email protected]>
  • Loading branch information
obulat authored Apr 4, 2024
1 parent 95da05b commit f321265
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/test/unit/specs/components/v-modal.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down

0 comments on commit f321265

Please sign in to comment.