Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Commit

Permalink
test(allergieslist.test): update alert test
Browse files Browse the repository at this point in the history
re #239
  • Loading branch information
emma-r-slight committed Jan 10, 2021
1 parent d34999a commit 128a9ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/__tests__/patients/allergies/AllergiesList.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ describe('Allergies list', () => {
it('should display a warning when no allergies are present', async () => {
const expectedAllergies: Allergy[] = []
await setup(expectedAllergies)
expect(screen.getByText('patient.allergies.warning.noAllergies')).toBeInTheDocument()
expect(screen.getByText('patient.allergies.addAllergyAbove')).toBeInTheDocument()
expect(screen.getByRole('alert')).toHaveTextContent(/patient\.allergies\.warning.noAllergies/i)
expect(screen.getByRole('alert')).toHaveTextContent(/patient\.allergies\.addAllergyAbove/i)
})

it('should navigate to the allergy when the allergy is clicked', async () => {
Expand Down

0 comments on commit 128a9ff

Please sign in to comment.