Skip to content

Commit

Permalink
Yoy uat 233 (#11496)
Browse files Browse the repository at this point in the history
  • Loading branch information
benmartin-coforma authored Oct 18, 2023
1 parent 6d3c0dc commit 0481d89
Show file tree
Hide file tree
Showing 9 changed files with 34 additions and 34 deletions.
42 changes: 21 additions & 21 deletions services/app-api/forms/mcpar.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ describe("Test AddEditReportModal functionality for MCPAR", () => {
const result = await render(modalComponent);
const form = result.getByTestId("add-edit-report-form");
const header = screen.getByRole("heading", { level: 1 });
expect(header.textContent).toEqual("Add / Copy a Program");
expect(header.textContent).toEqual("Add / Copy a MCPAR");
const copyFieldDataSourceId = form.querySelector(
"[name='copyFieldDataSourceId']"
)!;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"mode": "onChange"
},
"heading": {
"add": "Add / Copy a Program",
"subheading": "Add a new program to start a blank report or copy an existing report. Copying a program’s MCPAR will retain the structure of your program, including plans, BSS entities, quality & assurance measures, and access measures, but allow you to enter updated responses for the new reporting period, saving you time. You can still edit these details within.",
"add": "Add / Copy a MCPAR",
"subheading": "Complete the form below to generate a MCPAR for your managed care program. You may choose to copy an existing MCPAR report, which will retain many key responses (e.g., plan names, quality measures, etc.). Copied MCPARs will still have several blank fields and all responses can be edited. To create a blank MCPAR form, leave the “copy a report” field as “Select an option”.",
"edit": "Edit Program"
},
"fields": [
Expand All @@ -14,7 +14,7 @@
"type": "text",
"validation": "text",
"props": {
"label": "Program name"
"label": "Program name (for new MCPAR)"
}
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ export default {
},
empty:
"For this report, a managed care program is defined by a set of distinct benefits and eligibility criteria articulated in a contract between states and the state’s managed care plans",
callToAction: "Add / copy managed care program",
callToAction: "Add / copy a MCPAR",
},
};
2 changes: 1 addition & 1 deletion tests/cypress/tests/e2e/mcpar/autosave.feature
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Feature: Autosave
Given I am logged in as a state user
And I am on "/mcpar"

When I click the "Add / copy managed care program" button
When I click the "Add / copy a MCPAR" button
And these form elements are filled:
| programName | text | Autosave Test |
| reportingPeriodStartDate | text | 07/11/2022 |
Expand Down
2 changes: 1 addition & 1 deletion tests/cypress/tests/e2e/mcpar/dashboard.feature
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Feature: MCPAR Dashboard Page - Program Creation/Editing/Archiving
And I click the "Enter MCPAR online" button

Scenario Outline: State users can create programs
When I click the "Add / copy managed care program" button
When I click the "Add / copy a MCPAR" button
And these form elements are filled:
| programName | text | <title> |
| reportingPeriodStartDate | text | <startDate> |
Expand Down
2 changes: 1 addition & 1 deletion tests/cypress/tests/e2e/mcpar/dashboard.stepdef.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Then("there is the active program with {string}", (category) => {
});

Then("there is no way to create a program", () => {
cy.contains("Add / copy managed care program").should("not.exist");
cy.contains("Add / copy a MCPAR").should("not.exist");
});

Then("the program is archived", () => {
Expand Down
6 changes: 3 additions & 3 deletions tests/cypress/tests/e2e/mcpar/form.stepdef.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ When("I completely fill out a {string} form", (form) => {
lastYear.setFullYear(today.getFullYear() - 1);
const programName = "automated test - " + today.toISOString();
cy.visit(`/${form.toLowerCase()}`);
cy.get("button").contains("Add / copy managed care program").click();
cy.get("button").contains("Add / copy a MCPAR").click();
cy.get('input[name="programName"').type(programName);
cy.get('input[name="reportingPeriodStartDate"]').type(
lastYear.toLocaleDateString("en-US")
Expand Down Expand Up @@ -149,8 +149,8 @@ When("I try to submit an incomplete {string} program", (form) => {
lastYear.setFullYear(today.getFullYear() - 1);
const programName = "automated test - " + today.toISOString();
cy.visit(`/${form.toLowerCase()}`);
cy.findByRole("button", { name: "Add / copy managed care program" }).click();
cy.findByLabelText("Program name").type(programName);
cy.findByRole("button", { name: "Add / copy a MCPAR" }).click();
cy.findByLabelText("Program name (for new MCPAR)").type(programName);
cy.get('input[name="reportingPeriodStartDate"]').type(
lastYear.toLocaleDateString("en-US")
);
Expand Down
4 changes: 2 additions & 2 deletions tests/cypress/tests/e2e/sidebar.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ describe("Sidebar integration tests", () => {

// Create Report & nav to it
cy.findByRole("button", {
name: "Add / copy managed care program",
name: "Add / copy a MCPAR",
}).click();
cy.findByLabelText("Program name").type(
cy.findByLabelText("Program name (for new MCPAR)").type(
"automated test - " + new Date().toISOString()
);
cy.get('input[name="reportingPeriodStartDate"]').type("07142023");
Expand Down

0 comments on commit 0481d89

Please sign in to comment.