Skip to content

Commit

Permalink
Add to cypress checks that N/A does not display.
Browse files Browse the repository at this point in the history
  • Loading branch information
haworku committed Apr 18, 2024
1 parent adeab37 commit a36bf5a
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions services/cypress/integration/cmsWorkflow/rateReview.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ describe('CMS user can view rate reviews', () => {
})
cy.findByText('rate1SupportingDocument1.pdf').should('exist')

// No document dates or other fields are undefined
cy.findByText('N/A').should('not.exist')

// Go back to dashboard and check both rates in the table
// check the dashboard has the columns we expect
cy.findByText('Back to dashboard').should('exist').click()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,9 @@ describe('CMS user', () => {
cy.navigateFormByDirectLink(submissionURL)
cy.findByTestId('updatedSubmissionBanner').should('exist')

// No document dates or other fields are undefined
cy.findByText('N/A').should('not.exist')

// Should have change history records
cy.findAllByTestId('change-history-record').should('have.length', 5)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ describe('CMS user can view submission', () => {
cy.findByText(submissionName).should('exist').click()
cy.url({ timeout: 10_000 }).should('contain', submissionId)
cy.findByTestId('submission-summary').should('exist')


// No document dates or other fields are undefined
cy.findByText('N/A').should('not.exist')
})
})
})
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ describe('Q&A', () => {
{ timeout: 5_000 }
).should('exist')
})


// No document dates or other fields are undefined
cy.findByText('N/A').should('not.exist')
}
)
})
Expand Down

0 comments on commit a36bf5a

Please sign in to comment.