Skip to content

Commit

Permalink
add radio select to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gmrabian committed Oct 10, 2023
1 parent 604002c commit f3f470b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/cypress/tests/e2e/mcpar/autosave.feature
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Feature: Autosave
| programName | text | Autosave Test |
| reportingPeriodStartDate | text | 07/11/2022 |
| reportingPeriodEndDate | text | 11/07/2026 |
| programIsPCCM | radio| No |
And I click the "Save" button
Then there is an "Autosave Test" program

Expand Down
1 change: 1 addition & 0 deletions tests/cypress/tests/e2e/mcpar/form.stepdef.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ When("I try to submit an incomplete {string} program", (form) => {
today.toLocaleDateString("en-US")
);
cy.findByRole("checkbox").focus().click();
cy.get('input[name="programIsPCCM"').check("No");
cy.get("button[type=submit]").contains("Save").click();

//Find our new program and open it
Expand Down
1 change: 1 addition & 0 deletions tests/cypress/tests/e2e/sidebar.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ describe("Sidebar integration tests", () => {
cy.get('input[name="reportingPeriodStartDate"]').type("07142023");
cy.get('input[name="reportingPeriodEndDate"]').type("07142026");
cy.findByRole("checkbox").focused().click();
cy.get('input[name="programIsPCCM"').check("No");
cy.get("button[type=submit]").contains("Save").click();
cy.wait(2000);
cy.findAllByRole("button", { name: "Edit" }).first().click(); // Timeout
Expand Down

0 comments on commit f3f470b

Please sign in to comment.