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

Commit

Permalink
Merge pull request #262 from emma-r-slight/emma-improveTests
Browse files Browse the repository at this point in the history
test(newimagingrequest.test): change test descriptions re PR review
  • Loading branch information
nobrayner authored Jan 11, 2021
2 parents 0bf14fd + 4943047 commit f342ec5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/__tests__/imagings/requests/NewImagingRequest.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ describe('New Imaging Request', () => {
}

describe('form layout', () => {
it('Patient input field w/ label', () => {
it('Renders a patient input field with correct label', () => {
setup()
const imgPatientInput = screen.getByPlaceholderText(/imagings\.imaging\.patient/i)

Expand All @@ -57,7 +57,7 @@ describe('New Imaging Request', () => {
expect(imgPatientInput).toHaveDisplayValue('Cmdr. Data')
})

it('Render a dropdown list of visits', async () => {
it('Renders a dropdown list of visits', async () => {
setup()
const dropdownVisits = screen.getAllByPlaceholderText('-- Choose --')[0]
expect(screen.getByText(/patient\.visits\.label/i)).toBeInTheDocument()
Expand All @@ -68,7 +68,7 @@ describe('New Imaging Request', () => {
expect(dropdownVisits.getAttribute('aria-expanded')).toBe('true')
})

it('Render a image type input box', async () => {
it('Renders an image type input box', async () => {
setup()
const imgTypeInput = screen.getByPlaceholderText(/imagings\.imaging\.type/i)
expect(screen.getByLabelText(/imagings\.imaging\.type/i)).toBeInTheDocument()
Expand All @@ -77,7 +77,7 @@ describe('New Imaging Request', () => {
expect(imgTypeInput).toHaveDisplayValue('tricorder imaging')
})

it('Render a status types select', async () => {
it('Renders a status types select input field', async () => {
setup()
const dropdownStatusTypes = screen.getAllByPlaceholderText('-- Choose --')[1]
expect(screen.getByText(/patient\.visits\.label/i)).toBeInTheDocument()
Expand All @@ -97,7 +97,7 @@ describe('New Imaging Request', () => {
).toBe(true)
})

it('Render a notes text field', async () => {
it('Renders a notes text field', async () => {
setup()
const notesInputField = screen.getByRole('textbox', {
name: /imagings\.imaging\.notes/i,
Expand Down

0 comments on commit f342ec5

Please sign in to comment.