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 4573af3 commit ece74d7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/components/src/FieldMessage/FieldMessage.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,15 @@ describe("<FieldMessage />", () => {
})

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

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

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

expect(getByLabelText("caution message")).toBeInTheDocument()
})
Expand Down

0 comments on commit ece74d7

Please sign in to comment.