Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reverting the change: Removing the MMDL cards on new chip/spa #1565

Merged
merged 3 commits into from
Dec 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions services/ui-src/src/Routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ import WaiverAppendixKWithdraw from "./page/waiver-appendix-k/WaiverAppendixKWit
import WaiverAppendixKRAIForm from "./page/waiver-appendix-k/WaiverAppendixKRAIForm";
import DescribeForms from "./page/DescribeForms";
import EventList from "./page/event/EventList";
import MedicaidABPLandingPage from "./page/landing/MedicaidABPLandingPage";
import EventDetail from "./page/event/EventDetail";
import CHIPEligibilityLandingPage from "./page/landing/CHIPEligibilityLandingPage";
import MedicaidEligibilityLandingPage from "./page/landing/MedicaidEligibilityLandingPage";
import InitialWaiverB4Form from "./page/initial-waiver/InitialWaiverB4Form";
import InitialWaiverBForm from "./page/initial-waiver/InitialWaiverBForm";
Expand Down Expand Up @@ -438,11 +440,21 @@ const ROUTE_LIST: RouteSpec[] = [
exact: true,
component: AttachmentLanding,
},
{
path: ROUTES.ABP_LANDING,
exact: true,
component: MedicaidABPLandingPage,
},
{
path: ROUTES.MEDICAID_ELIGIBILITY_LANDING,
exact: true,
component: MedicaidEligibilityLandingPage,
},
{
path: ROUTES.CHIP_ELIGIBILITY_LANDING,
exact: true,
component: CHIPEligibilityLandingPage,
},
{
path: ONEMAC_ROUTES.FORMS_DESCRIBE,
component: accessGuardRouteListRenderer("canAccessAdminTools"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { Link } from "@material-ui/core";

export enum ExternalSystem {
MAC_PRO = "https://www.medicaid.gov/resources-for-states/medicaid-and-chip-program-macpro-portal/index.html#MACPro",
MMDL = "https://wms-mmdl.cms.gov/MMDL/faces/portal.jsp",
}

export interface TriageLandingPageConfig {
Expand Down
11 changes: 11 additions & 0 deletions services/ui-src/src/libs/triageChoices.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ export const choicesFromRoute = {
description: "Redirects to the MACPro Appian submission system",
linkTo: ROUTES.MEDICAID_ELIGIBILITY_LANDING,
},
{
title:
"Medicaid Alternative Benefits Plans (ABP), and Medicaid Premiums and Cost Sharing",
description: "Redirects to MMDL submission system",
linkTo: ROUTES.ABP_LANDING,
},
{
title: "All Other Medicaid SPA Submissions",
description: "Create a new Medicaid State Plan Amendment",
Expand All @@ -55,6 +61,11 @@ export const choicesFromRoute = {
heading: "CHIP SPA Type",
intro: "Select a CHIP SPA type to create your submission",
choices: [
{
title: "CHIP Eligibility",
description: "Redirects to MMDL submission system",
linkTo: ROUTES.CHIP_ELIGIBILITY_LANDING,
},
{
title: "All Other CHIP SPA Submissions",
description: "Create a new Medicaid State Plan Amendment",
Expand Down
36 changes: 36 additions & 0 deletions services/ui-src/src/page/landing/CHIPEligibilityLandingPage.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import React from "react";
import TriageExternalLandingPage, {
ExternalSystem,
TriageLandingPageConfig,
} from "../../components/TriageExternalLandingPage";

// config for /chip-eligibility
export const chipEligibilityLandingConfig: TriageLandingPageConfig = {
pageTitle: "CHIP Eligibility SPAs",
logoJSX: <img src="/assets/images/logos/mmdl.png" alt="MMDL Logo" />,
descriptionJSX: (
<>
<p>
<b>
CHIP Eligibility SPAs are managed within the{" "}
<a href={ExternalSystem.MMDL} target="_blank" rel="noreferrer">
Medicaid Model Data Lab (MMDL)
</a>
.
</b>
</p>
<p>
The MMDL system allows states to apply for changes to their State plan,
and access report on Medicaid program administration/implementation.
</p>
</>
),
buttonLabel: "Enter the MMDL system",
buttonLink: ExternalSystem.MMDL,
};

const CHIPEligibilityLandingPage = () => (
<TriageExternalLandingPage {...chipEligibilityLandingConfig} />
);

export default CHIPEligibilityLandingPage;
38 changes: 38 additions & 0 deletions services/ui-src/src/page/landing/MedicaidABPLandingPage.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import React from "react";
import TriageExternalLandingPage, {
ExternalSystem,
TriageLandingPageConfig,
} from "../../components/TriageExternalLandingPage";

// config for /medicaid-abp
const ABPLandingConfig: TriageLandingPageConfig = {
pageTitle:
"Medicaid Alternative Benefits Plans (ABP), and Medicaid Premiums and Cost Sharing",
logoJSX: <img src="/assets/images/logos/mmdl.png" alt="MMDL Logo" />,
descriptionJSX: (
<>
<p>
<b>
Medicaid Alternative Benefits Plans (ABP), and Medicaid Premiums and
Cost Sharing are managed within the{" "}
<a href={ExternalSystem.MMDL} target="_blank" rel="noreferrer">
Medicaid Model Data Lab (MMDL)
</a>
.
</b>
</p>
<p>
The MMDL system allows states to apply for changes to their State plan,
and access report on Medicaid program administration/implementation.
</p>
</>
),
buttonLabel: "Enter the MMDL system",
buttonLink: ExternalSystem.MMDL,
};

const MedicaidABPLandingPage = () => (
<TriageExternalLandingPage {...ABPLandingConfig} />
);

export default MedicaidABPLandingPage;
12 changes: 12 additions & 0 deletions tests/cypress/support/pages/oneMacFormPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const modalCancelBTN =
const attachmentInfoDescription =
"//h3[text()='Attachments']/following-sibling::p[1]";
const enterMacProBtn = "//button[contains(text(),'Enter the MACPro system')]";
const enterMmdlBtn = "//button[contains(text(),'Enter the MMDL system')]";
const IDInputBox = idElement;
const errorMessageID = "#componentIdStatusMsg0";
const errorMessageLine2ID = "#componentIdStatusMsg1";
Expand Down Expand Up @@ -282,6 +283,17 @@ export class oneMacFormPage {
}
}

verifyMmdlSystemBtn() {
cy.xpath(enterMmdlBtn).should("be.visible");
cy.xpath(enterMmdlBtn)
.parent("a")
.should(
"have.attr",
"href",
"https://wms-mmdl.cms.gov/MMDL/faces/portal.jsp"
);
}

verifyMacProSystemBtn() {
cy.xpath(enterMacProBtn).should("be.visible");
cy.xpath(enterMacProBtn)
Expand Down
Loading