Skip to content

Commit

Permalink
something isnt working here WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
ruizajtruss committed Apr 26, 2024
1 parent dd6e813 commit 8f354fb
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export const StateSubmissionForm = (): React.ReactElement => {
'SUBMISSIONS_RATE_DETAILS'
)}
element={
useLinkedRates ? (
!useLinkedRates ? (
<RateDetailsV2 type="MULTI" />
) : (
<RateDetails />
Expand All @@ -77,7 +77,7 @@ export const StateSubmissionForm = (): React.ReactElement => {
'SUBMISSIONS_REVIEW_SUBMIT'
)}
element={
useLinkedRates ? <ReviewSubmitV2 /> : <ReviewSubmit />
!useLinkedRates ? <ReviewSubmitV2 /> : <ReviewSubmit />
}
/>
<Route path="*" element={<Error404 />} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ describe('CMS user can view submission', () => {
level: 2,
name: /Rate details/,
}).should('exist')
cy.fillOutNewRateCertification()
cy.fillOutAdditionalActuaryContact()
cy.navigateFormByButtonClick('CONTINUE')

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ describe('rate details', () => {
})
})

it('can add amendment to prior rate certification', () => {
it.only('can add amendment to prior rate certification', () => {
cy.logInAsStateUser()
cy.startNewContractAndRatesSubmission()

Expand Down Expand Up @@ -112,6 +112,14 @@ describe('rate details', () => {
})
}
)
cy.findByRole('radiogroup', {
name: /Actuaries' communication preference/
})
.should('exist')
.within(() => {
cy.findByText("OACT can communicate directly with the state's actuaries but should copy the state on all written communication and all appointments for verbal discussions.")
.click()
})

// Navigate to contacts page by clicking continue
cy.navigateFormByButtonClick('CONTINUE')
Expand Down
13 changes: 12 additions & 1 deletion services/cypress/support/stateSubmissionFormCommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,9 @@ Cypress.Commands.add('fillOutNewRateCertification', () => {
cy.findAllByLabelText('Title/Role').eq(0).type('Actuary Contact Title')
cy.findAllByLabelText('Email').eq(0).type('actuarycontact@example.com')
cy.findAllByLabelText('Mercer').eq(0).safeClick()
cy.findAllByLabelText(
"OACT can communicate directly with the state's actuaries but should copy the state on all written communication and all appointments for verbal discussions."
).eq(0).safeClick()

// Upload a rate certification and rate supporting document
cy.findAllByTestId('file-input-input').each(fileInput =>
Expand Down Expand Up @@ -446,6 +449,14 @@ Cypress.Commands.add('fillOutAmendmentToPriorRateCertification', (id = 0) => {
cy.findAllByLabelText('Title/Role').eq(0).type('Actuary Contact Title')
cy.findAllByLabelText('Email').eq(0).type('actuarycontact@example.com')
cy.findAllByLabelText('Mercer').eq(0).safeClick()
cy.findByRole('radiogroup', {
name: /Actuaries' communication preference/
})
.should('exist')
.within(() => {
cy.findByText("OACT can communicate directly with the state's actuaries but should copy the state on all written communication and all appointments for verbal discussions.")
.click()
})

// Upload a rate certification and rate supporting document
cy.findAllByTestId('file-input-input').each(fileInput =>
Expand Down Expand Up @@ -484,7 +495,7 @@ Cypress.Commands.add('fillOutAdditionalActuaryContact', () => {

// Actuary communication preference
cy.findByText(
`OACT can communicate directly with the state’s actuaries but should copy the state on all written communication and all appointments for verbal discussions.`
"OACT can communicate directly with the state’s actuaries but should copy the state on all written communication and all appointments for verbal discussions."
).click()
cy.findAllByTestId('errorMessage').should('have.length', 0)
})
Expand Down

0 comments on commit 8f354fb

Please sign in to comment.