Skip to content

Commit

Permalink
make cypress work
Browse files Browse the repository at this point in the history
  • Loading branch information
macrael committed Jul 18, 2023
1 parent 96c77fc commit b030916
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions services/cypress/support/stateSubmissionFormCommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,7 @@ Cypress.Commands.add('startNewContractAndRatesSubmission', () => {

Cypress.Commands.add('fillOutContractActionOnlyWithBaseContract', () => {
// Must be on '/submissions/new'
cy.getFeatureFlagStore(['chip-only-form']).then((store) => {
if (store['chip-only-form']) {
cy.get('label[for="medicaid"]').click()
}
})
cy.get('label[for="medicaid"]').click()

cy.findByRole('combobox', {
name: 'Programs this contract action covers (required)',
Expand All @@ -63,11 +59,7 @@ Cypress.Commands.add('fillOutContractActionOnlyWithBaseContract', () => {

Cypress.Commands.add('fillOutContractActionOnlyWithAmendment', () => {
// Must be on '/submissions/new'
cy.getFeatureFlagStore(['chip-only-form']).then((store) => {
if (store['chip-only-form']) {
cy.get('label[for="medicaid"]').click()
}
})
cy.get('label[for="medicaid"]').click()
cy.findByRole('combobox', {
name: 'Programs this contract action covers (required)', timeout: 2_000
}).click({
Expand All @@ -89,11 +81,7 @@ Cypress.Commands.add('fillOutContractActionOnlyWithAmendment', () => {

Cypress.Commands.add('fillOutContractActionAndRateCertification', () => {
// Must be on '/submissions/new'
cy.getFeatureFlagStore(['chip-only-form']).then((store) => {
if (store['chip-only-form']) {
cy.get('label[for="medicaid"]').click()
}
})
cy.get('label[for="medicaid"]').click()
cy.findByRole('combobox', {
name: 'Programs this contract action covers (required)', timeout: 2_000
}).click({
Expand Down

0 comments on commit b030916

Please sign in to comment.