Skip to content

Commit

Permalink
fix FieldMessage tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Geoffrey Chong committed Sep 2, 2024
1 parent ece74d7 commit 8c47c82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/components/src/FieldMessage/FieldMessage.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@ describe("<FieldMessage />", () => {
it("renders the error icon with an accessible title", () => {
const { getByLabelText } = render(<FieldMessageWrapper variant="warning" />)

expect(getByLabelText("error message")).toBeInTheDocument()
expect(getByLabelText("warning message")).toBeInTheDocument()
})

it("renders the caution icon with an accessible title", () => {
const { getByLabelText } = render(
<FieldMessageWrapper variant="cautionary" />
)

expect(getByLabelText("caution message")).toBeInTheDocument()
expect(getByLabelText("cautionary message")).toBeInTheDocument()
})
})

0 comments on commit 8c47c82

Please sign in to comment.