From 9023da43bc9ffc8ddca50debf4692bd23d85d6ac Mon Sep 17 00:00:00 2001 From: Kristin Grue Date: Tue, 3 Oct 2023 15:13:39 -0400 Subject: [PATCH 1/3] commented out unused tests --- tests/cypress/cypress/e2e/common/steps.js | 586 +++++++++--------- .../support/pages/oneMacPackageDetailsPage.js | 298 ++++----- .../support/pages/oneMacSubmissionTypePage.js | 12 +- 3 files changed, 451 insertions(+), 445 deletions(-) diff --git a/tests/cypress/cypress/e2e/common/steps.js b/tests/cypress/cypress/e2e/common/steps.js index 415eea2f2..b41ad228c 100644 --- a/tests/cypress/cypress/e2e/common/steps.js +++ b/tests/cypress/cypress/e2e/common/steps.js @@ -2115,9 +2115,9 @@ Then("verify a type containing SPA exists for the Type", () => { Then("verify the type is Medicaid SPA", () => { OneMacPackageDetailsPage.verifyTypeContainsMedicaidSPA(); }); -Then("verify the type is CHIP SPA ", () => { - OneMacPackageDetailsPage.verifyTypeContainsCHIPSPA(); -}); +// Then("verify the type is CHIP SPA ", () => { +// OneMacPackageDetailsPage.verifyTypeContainsCHIPSPA(); +// }); Then("verify the type is Initial Waiver", () => { OneMacPackageDetailsPage.verifyTypeContainsInitialWaiver(); }); @@ -2179,18 +2179,18 @@ Then( OneMacRespondToRAIPage.verifyPageHeader(); } ); -Then("click back arrow", () => { - OneMacRespondToRAIPage.clickBackArrow(); -}); -Then("click Leave, anyway", () => { - OneMacRespondToRAIPage.clickLeaveAnyway(); -}); -Then("verify user is on new spa page", () => { - OneMacSubmissionTypePage.verifyNewSPAPage(); -}); -Then("verify user is on new waiver page", () => { - OneMacSubmissionTypePage.verifyNewWaiverPage(); -}); +// Then("click back arrow", () => { +// OneMacRespondToRAIPage.clickBackArrow(); +// }); +// Then("click Leave, anyway", () => { +// OneMacRespondToRAIPage.clickLeaveAnyway(); +// }); +// Then("verify user is on new spa page", () => { +// OneMacSubmissionTypePage.verifyNewSPAPage(); +// }); +// Then("verify user is on new waiver page", () => { +// OneMacSubmissionTypePage.verifyNewWaiverPage(); +// }); Then("verify user is on new initial waiver page", () => { OneMacSubmissionTypePage.verifyNewInitialWaiverPage(); }); @@ -2239,81 +2239,81 @@ Then("verify RAI Responses header exists", () => { Then("verify RAI Responses header does not exist", () => { OneMacPackageDetailsPage.verifyRaiResponseHeaderDoesNotExist(); }); -Then( - "verify the Medicaid RAI Responses caret at the top of the list exists and is enabled", - () => { - OneMacPackageDetailsPage.verifyMedicaidTopRaiRespCaretExistsThenEnabled(); - } -); -Then( - "verify the CHIP RAI Responses caret at the top of the list exists and is enabled", - () => { - OneMacPackageDetailsPage.verifyCHIPTopRaiRespCaretExistsThenEnabled(); - } -); -Then( - "verify the Appendix K RAI Responses caret at the top of the list exists and is enabled", - () => { - OneMacPackageDetailsPage.verifyAppKTopRaiRespCaretExistsThenEnabled(); - } -); -Then( - "verify the title of the Medicaid RAI Responses caret at the top of the list is in Submitted on format", - () => { - OneMacPackageDetailsPage.verifyMedicaidTopRaiRespCaretTitle(); - } -); -Then( - "verify the title of the CHIP RAI Responses caret at the top of the list is in Submitted on format", - () => { - OneMacPackageDetailsPage.verifyCHIPTopRaiRespCaretTitle(); - } -); -Then( - "verify the title of the Appendix K RAI Responses caret at the top of the list is in Submitted on format", - () => { - OneMacPackageDetailsPage.verifyAppKTopRaiRespCaretTitle(); - } -); -Then( - "verify the Medicaid RAI response card at the top of the list exists", - () => { - OneMacPackageDetailsPage.verifyMedicaidTopRaiRespCardExists(); - } -); -Then("verify the CHIP RAI response card at the top of the list exists", () => { - OneMacPackageDetailsPage.verifyCHIPTopRaiRespCardExists(); -}); -Then( - "verify the Appendix K RAI response card at the top of the list exists", - () => { - OneMacPackageDetailsPage.verifyAppKTopRaiRespCardExists(); - } -); -Then( - "verify the download button for the Medicaid RAI response at the top of the list exists", - () => { - OneMacPackageDetailsPage.verifyMedicaidTopRaiRespDownloadBtnExistsThenEnabled(); - } -); -Then( - "verify the download button for the CHIP RAI response at the top of the list exists", - () => { - OneMacPackageDetailsPage.verifyCHIPTopRaiRespDownloadBtnExistsThenEnabled(); - } -); -Then( - "verify the download button for the Appendix K RAI response at the top of the list exists", - () => { - OneMacPackageDetailsPage.verifyAppKTopRaiRespDownloadBtnxistsThenEnabled(); - } -); -Then("verify the first RAI response does not have Additional Info", () => { - OneMacPackageDetailsPage.verifyTopRaiRespAddInfoDoesNotExist(); -}); -Then("verify the first RAI response has Additional Info", () => { - OneMacPackageDetailsPage.verifyTopRaiRespAddInfoExists(); -}); +// Then( +// "verify the Medicaid RAI Responses caret at the top of the list exists and is enabled", +// () => { +// OneMacPackageDetailsPage.verifyMedicaidTopRaiRespCaretExistsThenEnabled(); +// } +// ); +// Then( +// "verify the CHIP RAI Responses caret at the top of the list exists and is enabled", +// () => { +// OneMacPackageDetailsPage.verifyCHIPTopRaiRespCaretExistsThenEnabled(); +// } +// ); +// Then( +// "verify the Appendix K RAI Responses caret at the top of the list exists and is enabled", +// () => { +// OneMacPackageDetailsPage.verifyAppKTopRaiRespCaretExistsThenEnabled(); +// } +// ); +// Then( +// "verify the title of the Medicaid RAI Responses caret at the top of the list is in Submitted on format", +// () => { +// OneMacPackageDetailsPage.verifyMedicaidTopRaiRespCaretTitle(); +// } +// ); +// Then( +// "verify the title of the CHIP RAI Responses caret at the top of the list is in Submitted on format", +// () => { +// OneMacPackageDetailsPage.verifyCHIPTopRaiRespCaretTitle(); +// } +// ); +// Then( +// "verify the title of the Appendix K RAI Responses caret at the top of the list is in Submitted on format", +// () => { +// OneMacPackageDetailsPage.verifyAppKTopRaiRespCaretTitle(); +// } +// ); +// Then( +// "verify the Medicaid RAI response card at the top of the list exists", +// () => { +// OneMacPackageDetailsPage.verifyMedicaidTopRaiRespCardExists(); +// } +// ); +// Then("verify the CHIP RAI response card at the top of the list exists", () => { +// OneMacPackageDetailsPage.verifyCHIPTopRaiRespCardExists(); +// }); +// Then( +// "verify the Appendix K RAI response card at the top of the list exists", +// () => { +// OneMacPackageDetailsPage.verifyAppKTopRaiRespCardExists(); +// } +// ); +// Then( +// "verify the download button for the Medicaid RAI response at the top of the list exists", +// () => { +// OneMacPackageDetailsPage.verifyMedicaidTopRaiRespDownloadBtnExistsThenEnabled(); +// } +// ); +// Then( +// "verify the download button for the CHIP RAI response at the top of the list exists", +// () => { +// OneMacPackageDetailsPage.verifyCHIPTopRaiRespDownloadBtnExistsThenEnabled(); +// } +// ); +// Then( +// "verify the download button for the Appendix K RAI response at the top of the list exists", +// () => { +// OneMacPackageDetailsPage.verifyAppKTopRaiRespDownloadBtnxistsThenEnabled(); +// } +// ); +// Then("verify the first RAI response does not have Additional Info", () => { +// OneMacPackageDetailsPage.verifyTopRaiRespAddInfoDoesNotExist(); +// }); +// Then("verify the first RAI response has Additional Info", () => { +// OneMacPackageDetailsPage.verifyTopRaiRespAddInfoExists(); +// }); Then("click the actions button in row one", () => { OneMacPackagePage.clickPackageRowOneActionsBtn(); }); @@ -2326,6 +2326,7 @@ Then("click the Request Temporary Extension button", () => { Then("verify the Request Temporary Extension button is displayed", () => { OneMacPackagePage.verifyRequestTempExtensionBtnExists(); }); +// this test step is commented out in the tests Then("click the Add Amendment button", () => { OneMacPackagePage.clickAddAmendmentBtn(); }); @@ -2335,18 +2336,18 @@ Then("verify the Add Amendment button is displayed", () => { Then("verify the Respond to RAI button is displayed", () => { OneMacPackagePage.verifyRespondToRAIBtnExists(); }); -Then("verify Package Overview navigation button exists", () => { - OneMacPackageDetailsPage.verifyPackageOverviewNavBtnExists(); -}); -Then("verify Package Overview navigation button is enabled", () => { - OneMacPackageDetailsPage.verifyPackageOverviewNavBtnIsEnabled(); -}); -Then("verify Package Overview navigation button is expanded", () => { - OneMacPackageDetailsPage.verifyPackageOverviewNavBtnIsExpanded(); -}); -Then("verify Package Details is listed under Package Overview", () => { - OneMacPackageDetailsPage.verifyPackageDetailsNavBtnExists(); -}); +// Then("verify Package Overview navigation button exists", () => { +// OneMacPackageDetailsPage.verifyPackageOverviewNavBtnExists(); +// }); +// Then("verify Package Overview navigation button is enabled", () => { +// OneMacPackageDetailsPage.verifyPackageOverviewNavBtnIsEnabled(); +// }); +// Then("verify Package Overview navigation button is expanded", () => { +// OneMacPackageDetailsPage.verifyPackageOverviewNavBtnIsExpanded(); +// }); +// Then("verify Package Details is listed under Package Overview", () => { +// OneMacPackageDetailsPage.verifyPackageDetailsNavBtnExists(); +// }); Then("click the pending user action button", () => { OneMacUserManagmentPage.clickPendingUserActionBtn(); }); @@ -2365,12 +2366,12 @@ Then( OneMacPackageDetailsPage.verifyProposedEffectiveDateHeaderExists(); } ); -Then("verify the Proposed Effective Date is NA", () => { - OneMacPackageDetailsPage.verifyproposedEffectiveDateHeaderContainsNA(); -}); -Then("verify the Proposed Effective Date is Pending", () => { - OneMacPackageDetailsPage.verifyproposedEffectiveDateHeaderContainsPending(); -}); +// Then("verify the Proposed Effective Date is NA", () => { +// OneMacPackageDetailsPage.verifyproposedEffectiveDateHeaderContainsNA(); +// }); +// Then("verify the Proposed Effective Date is Pending", () => { +// OneMacPackageDetailsPage.verifyproposedEffectiveDateHeaderContainsPending(); +// }); Then( "verify the Proposed Effective Date is a date formatted like Mon dd yyyy", () => { @@ -2389,12 +2390,12 @@ Then( OneMacPackageDetailsPage.verifyFinalDispositionDateHeaderDoesNotExists(); } ); -Then( - "verify the Final Disposition Date is a date formatted like Mon dd yyyy", - () => { - OneMacPackageDetailsPage.verifyFinalDispositionDateHeaderContainsDate(); - } -); +// Then( +// "verify the Final Disposition Date is a date formatted like Mon dd yyyy", +// () => { +// OneMacPackageDetailsPage.verifyFinalDispositionDateHeaderContainsDate(); +// } +// ); Then( "verify there is an Approved Effective Date in the details section", () => { @@ -2407,51 +2408,51 @@ Then( OneMacPackageDetailsPage.verifyApprovedEffectiveDateHeaderDoesNotExists(); } ); -Then( - "verify the Approved Effective Date is a date formatted like Mon dd yyyy", - () => { - OneMacPackageDetailsPage.verifyApprovedEffectiveDateHeaderContainsDate(); - } -); -Then( - "verify there is an Actual Effective Date header in the details section", - () => { - OneMacPackageDetailsPage.verifyActualEffectiveDateHeaderExists(); - } -); -Then( - "verify there is not an Actual Effective Date header in the details section", - () => { - OneMacPackageDetailsPage.verifyActualEffectiveDateHeaderDoesNotExists(); - } -); -Then( - "verify the Actual Effective Date is a date formatted like Mon dd yyyy", - () => { - OneMacPackageDetailsPage.verifyActualEffectiveDateHeaderContainsDate(); - } -); +// Then( +// "verify the Approved Effective Date is a date formatted like Mon dd yyyy", +// () => { +// OneMacPackageDetailsPage.verifyApprovedEffectiveDateHeaderContainsDate(); +// } +// ); +// Then( +// "verify there is an Actual Effective Date header in the details section", +// () => { +// OneMacPackageDetailsPage.verifyActualEffectiveDateHeaderExists(); +// } +// ); +// Then( +// "verify there is not an Actual Effective Date header in the details section", +// () => { +// OneMacPackageDetailsPage.verifyActualEffectiveDateHeaderDoesNotExists(); +// } +// ); +// Then( +// "verify the Actual Effective Date is a date formatted like Mon dd yyyy", +// () => { +// OneMacPackageDetailsPage.verifyActualEffectiveDateHeaderContainsDate(); +// } +// ); Then( "verify there is an Formal RAI Received Date header in the details section", () => { OneMacPackageDetailsPage.verifyFormalRAIReceivedDateHeaderExists(); } ); -Then( - "verify there is not an Formal RAI Received Date header in the details section", - () => { - OneMacPackageDetailsPage.verifyFormalRAIReceivedDateHeaderDoesNotExists(); - } -); +// Then( +// "verify there is not an Formal RAI Received Date header in the details section", +// () => { +// OneMacPackageDetailsPage.verifyFormalRAIReceivedDateHeaderDoesNotExists(); +// } +// ); Then( "verify the Formal RAI Received Date is a date formatted like Mon dd yyyy", () => { OneMacPackageDetailsPage.verifyFormalRAIReceivedDateHeaderContainsDate(); } ); -Then("verify the Amendment Number header exists", () => { - OneMacPackageDetailsPage.verifyAmendmentNumberHeaderExists(); -}); +// Then("verify the Amendment Number header exists", () => { +// OneMacPackageDetailsPage.verifyAmendmentNumberHeaderExists(); +// }); Then("verify the waiver authority header exists", () => { OneMacPackageDetailsPage.verifyWaiverAuthorityHeaderExists(); }); @@ -2461,6 +2462,7 @@ Then("verify the waiver authority is 1915c HCBS", () => { Then("verify the attachments section exists", () => { OneMacPackageDetailsPage.verifyAttachmentsSectionExists(); }); +// all uses of this test are there, but commented out Then("verify the download all button exists", () => { OneMacPackageDetailsPage.verifyDownloadAllBtnExists(); }); @@ -2470,21 +2472,21 @@ Then("verify the additional information section exists", () => { Then("verify the Administrative Package Changes section exists", () => { OneMacPackageDetailsPage.verifyAdministrativePackageChangesSectionExists(); }); -Then("verify the Formal RAI Responses section exists", () => { - OneMacPackageDetailsPage.verifyFormalRAIResponsesSectionExists(); -}); +// Then("verify the Formal RAI Responses section exists", () => { +// OneMacPackageDetailsPage.verifyFormalRAIResponsesSectionExists(); +// }); Then("click withdraw button", () => { OneMacPackageDetailsPage.clickWithdrawBtn(); }); -Then("click withdraw confirmation", () => { - OneMacPackageDetailsPage.clickWithdrawConfirmationBtn(); -}); -Then("verify submission message for withdrawn amendment", () => { - OneMacPackageDetailsPage.verifySubmissionMsgForWithdrawnAmendment(); -}); -Then("verify the amendment details section exists", () => { - OneMacPackageDetailsPage.verifyAmendmentDetailSectionExists(); -}); +// Then("click withdraw confirmation", () => { +// OneMacPackageDetailsPage.clickWithdrawConfirmationBtn(); +// }); +// Then("verify submission message for withdrawn amendment", () => { +// OneMacPackageDetailsPage.verifySubmissionMsgForWithdrawnAmendment(); +// }); +// Then("verify the amendment details section exists", () => { +// OneMacPackageDetailsPage.verifyAmendmentDetailSectionExists(); +// }); Then("verify success message for denied role", () => { OneMacDashboardPage.verifySuccessMessageIsDisplayedForRoleChange(); }); @@ -2547,13 +2549,13 @@ Then("Type Temporary Extension Number {string}", (s) => { } }); }); -Then("click on the link for temporary extension number 1", () => { - cy.fixture("packageDashboardWaiverNumbers.json").then((data) => { - OneMacPackageDetailsPage.clickTempExtensionID( - data.newTemporaryExtensionNumber1 - ); - }); -}); +// Then("click on the link for temporary extension number 1", () => { +// cy.fixture("packageDashboardWaiverNumbers.json").then((data) => { +// OneMacPackageDetailsPage.clickTempExtensionID( +// data.newTemporaryExtensionNumber1 +// ); +// }); +// }); Then("verify the initial waiver parent ID is prefilled in the form", () => { OneMacSubmitNewWaiverActionPage.verifyParentInitialIDIsPrefilled(); }); @@ -2564,26 +2566,26 @@ Then("verify the package ID is prefilled in the form", () => { OneMacRespondToRAIPage.verifyIDIsPrefilled(); }); -Then("verify the temporary extension exists", () => { - cy.fixture("packageDashboardWaiverNumbers.json").then((data) => { - OneMacPackageDetailsPage.verifyTempExtensionIDExists( - data.newTemporaryExtensionNumber1 - ); - }); -}); -Then("click the action button for temporary extension 2", () => { - cy.fixture("packageDashboardWaiverNumbers.json").then((data) => { - OneMacPackageDetailsPage.clickTempExtensionActionBtn( - data.newTemporaryExtensionNumber2 - ); - }); -}); -Then("click withdraw button on the temp extension page", () => { - OneMacPackageDetailsPage.clickWithdrawBtnOnTempExt(); -}); -Then("click on the Temporary Extension nav button", () => { - OneMacPackageDetailsPage.clickTempExtensionsNavBtn(); -}); +// Then("verify the temporary extension exists", () => { +// cy.fixture("packageDashboardWaiverNumbers.json").then((data) => { +// OneMacPackageDetailsPage.verifyTempExtensionIDExists( +// data.newTemporaryExtensionNumber1 +// ); +// }); +// }); +// Then("click the action button for temporary extension 2", () => { +// cy.fixture("packageDashboardWaiverNumbers.json").then((data) => { +// OneMacPackageDetailsPage.clickTempExtensionActionBtn( +// data.newTemporaryExtensionNumber2 +// ); +// }); +// }); +// Then("click withdraw button on the temp extension page", () => { +// OneMacPackageDetailsPage.clickWithdrawBtnOnTempExt(); +// }); +// Then("click on the Temporary Extension nav button", () => { +// OneMacPackageDetailsPage.clickTempExtensionsNavBtn(); +// }); Then("copy the ID from the link in the first row", () => { OneMacPackagePage.copyTheIDFromLinkInFirstRow(); }); @@ -2623,12 +2625,12 @@ Then("reset EUA CMS Read Only User state if needed", () => { }); }); -Then( - "verify the actions button is unavailable in the submission dashboard", - () => { - OneMacDashboardPage.verifyActionsBtnUnvailableOnFirstRow(); - } -); +// Then( +// "verify the actions button is unavailable in the submission dashboard", +// () => { +// OneMacDashboardPage.verifyActionsBtnUnvailableOnFirstRow(); +// } +// ); Then("verify the actions button is disabled in the package dashboard", () => { OneMacDashboardPage.verifyActionsBtnDisabledOnFirstRow(); }); @@ -2737,76 +2739,76 @@ Then( OneMacFAQPage.verifyAttachmentsFor1915cRequestTempExtBody(); } ); -Then( - "Type {string} into Approved Initial or Renewal Waiver Number field", - (n) => { - OneMacRequestWaiverTemporaryExtension.inputApprovedBaseOrRenewalWaiverNumber( - n - ); - } -); -Then( - "verify Approved Initial or Renewal Waiver Number error message is displayed", - () => { - OneMacRequestWaiverTemporaryExtension.verifyParentErrorMessageIsDisplayed(); - } -); -Then( - "verify Approved Initial or Renewal Waiver Number error message text is correct", - () => { - OneMacRequestWaiverTemporaryExtension.verifyParentErrorMessageText(); - } -); -Then( - "verify Approved Initial or Renewal Waiver Number error message is not displayed", - () => { - OneMacRequestWaiverTemporaryExtension.verifyParentErrorMessageIsNotDisplayed(); - } -); -Then("clear Approved Initial or Renewal Waiver Number input box", () => { - OneMacRequestWaiverTemporaryExtension.clearApprovedBaseOrRenewalWaiverNumberInputBox(); -}); -Then("wait for {string} miliseconds", (s) => { - cy.wait(parseInt(s)); -}); +// Then( +// "Type {string} into Approved Initial or Renewal Waiver Number field", +// (n) => { +// OneMacRequestWaiverTemporaryExtension.inputApprovedBaseOrRenewalWaiverNumber( +// n +// ); +// } +// ); +// Then( +// "verify Approved Initial or Renewal Waiver Number error message is displayed", +// () => { +// OneMacRequestWaiverTemporaryExtension.verifyParentErrorMessageIsDisplayed(); +// } +// ); +// Then( +// "verify Approved Initial or Renewal Waiver Number error message text is correct", +// () => { +// OneMacRequestWaiverTemporaryExtension.verifyParentErrorMessageText(); +// } +// ); +// Then( +// "verify Approved Initial or Renewal Waiver Number error message is not displayed", +// () => { +// OneMacRequestWaiverTemporaryExtension.verifyParentErrorMessageIsNotDisplayed(); +// } +// ); +// Then("clear Approved Initial or Renewal Waiver Number input box", () => { +// OneMacRequestWaiverTemporaryExtension.clearApprovedBaseOrRenewalWaiverNumberInputBox(); +// }); +// Then("wait for {string} miliseconds", (s) => { +// cy.wait(parseInt(s)); +// }); Then("verify error message contains {string}", (msg) => { OneMacDefaultForms.verifyErrorMsgContains(msg); }); -Then("search for Initial Waiver in RAI Issued status", () => { - cy.fixture("packageDashboardWaiverNumbers.json").then((data) => { - OneMacPackagePage.searchFor(data.initialWaiverInRAIStatus); - }); - cy.wait(1000); -}); -Then( - "verify the Initial Waiver Number in RAI Issued status is pre-populated and uneditable", - () => { - cy.fixture("packageDashboardWaiverNumbers.json").then((data) => { - OneMacRespondToRAIPage.verifyWaiverNumberMatchesID( - data.initialWaiverInRAIStatus - ); - }); - cy.wait(1000); - } -); -Then("search for the Appendix K Amendment in RAI Issued status", () => { - cy.fixture("packageDashboardWaiverNumbers.json").then((data) => { - OneMacPackagePage.searchFor(data.appKInRAIStatus); - }); - cy.wait(1000); -}); +// Then("search for Initial Waiver in RAI Issued status", () => { +// cy.fixture("packageDashboardWaiverNumbers.json").then((data) => { +// OneMacPackagePage.searchFor(data.initialWaiverInRAIStatus); +// }); +// cy.wait(1000); +// }); +// Then( +// "verify the Initial Waiver Number in RAI Issued status is pre-populated and uneditable", +// () => { +// cy.fixture("packageDashboardWaiverNumbers.json").then((data) => { +// OneMacRespondToRAIPage.verifyWaiverNumberMatchesID( +// data.initialWaiverInRAIStatus +// ); +// }); +// cy.wait(1000); +// } +// ); +// Then("search for the Appendix K Amendment in RAI Issued status", () => { +// cy.fixture("packageDashboardWaiverNumbers.json").then((data) => { +// OneMacPackagePage.searchFor(data.appKInRAIStatus); +// }); +// cy.wait(1000); +// }); Then( "verify the Appendix K Amendment in RAI Issued status is pre-populated and uneditable", () => { OneMacRespondToRAIPage.verifyAmendmentIDIsPrefilled(); } ); -Then( - "verify the Waiver Amendment in RAI Issued status is pre-populated and uneditable", - () => { - OneMacRespondToRAIPage.verifyAmendmentIDIsPrefilled(); - } -); +// Then( +// "verify the Waiver Amendment in RAI Issued status is pre-populated and uneditable", +// () => { +// OneMacRespondToRAIPage.verifyAmendmentIDIsPrefilled(); +// } +// ); Then( "type new waiver renewal number {string} in 1915b Waiver Renewal Number field", (s) => { @@ -2874,12 +2876,12 @@ Then("search for new waiver renewal number {string}", (s) => { cy.wait(1000); }); -Then("search for new waiver amendment number 1", () => { - cy.fixture("packageDashboardWaiverNumbers.json").then((d) => { - OneMacPackagePage.searchFor(d.newWaiverAmendmentNum1); - }); - cy.wait(1000); -}); +// Then("search for new waiver amendment number 1", () => { +// cy.fixture("packageDashboardWaiverNumbers.json").then((d) => { +// OneMacPackagePage.searchFor(d.newWaiverAmendmentNum1); +// }); +// cy.wait(1000); +// }); Then( "type approved Initial Waiver number into Existing Waiver Number to Renew field", () => { @@ -2966,19 +2968,19 @@ Then( }); } ); -Then("verify id number in the first row matches approved waiver number", () => { - cy.fixture("packageDashboardWaiverNumbers.json").then((data) => { - OneMacPackagePage.verifyIDNumberInFirstRowIs( - data.approvedInitialWaiverNum1 - ); - }); -}); +// Then("verify id number in the first row matches approved waiver number", () => { +// cy.fixture("packageDashboardWaiverNumbers.json").then((data) => { +// OneMacPackagePage.verifyIDNumberInFirstRowIs( +// data.approvedInitialWaiverNum1 +// ); +// }); +// }); Then("type Appendix K Submission 1 into Amendment Title field", () => { OneMacAppendixKAmendmentPage.inputAmendmentTitle("Appendix K Submission 1"); }); -Then("verify id number in the first row matches Appendix K number", () => { - OneMacPackagePage.verifyIDNumberInFirstRowIs("MD-10330.R00.12"); -}); +// Then("verify id number in the first row matches Appendix K number", () => { +// OneMacPackagePage.verifyIDNumberInFirstRowIs("MD-10330.R00.12"); +// }); Then("verify id number in the first row matches {string}", (s) => { OneMacPackagePage.verifyIDNumberInFirstRowIs(s); @@ -3093,51 +3095,55 @@ Then( Then("verify Review Team SRT is not visible in the details section", () => { OneMacPackageDetailsPage.verifyReviewTeamSRTDoesNotExists(); }); +// in a test, but commented out Then("verify the Formal RAI Response caret button exists", () => { OneMacPackageDetailsPage.verifyFormalRAIResponseCaretBtnExists(); }); +// in a test, but commented out Then("expand the Formal RAI Response caret button", () => { OneMacPackageDetailsPage.expandFormalRAIResponseCaretBtn(); }); -Then("collapse the Formal RAI Response caret button", () => { - OneMacPackageDetailsPage.collapseFormalRAIResponseCaretBtn(); -}); -Then("click the Formal RAI Response caret button", () => { - OneMacPackageDetailsPage.clickFormalRAIResponseCaretBtn(); -}); +// Then("collapse the Formal RAI Response caret button", () => { +// OneMacPackageDetailsPage.collapseFormalRAIResponseCaretBtn(); +// }); +// Then("click the Formal RAI Response caret button", () => { +// OneMacPackageDetailsPage.clickFormalRAIResponseCaretBtn(); +// }); +// in a test, but commented out Then("verify the Formal RAI Response download all button exists", () => { OneMacPackageDetailsPage.verifyFormalRAIResponseDownloadAllBtnExists(); }); -Then("click the Formal RAI Response download all button", () => { - OneMacPackageDetailsPage.clickFormalRAIResponseDownloadAllBtn(); -}); +// Then("click the Formal RAI Response download all button", () => { +// OneMacPackageDetailsPage.clickFormalRAIResponseDownloadAllBtn(); +// }); Then("verify the Initial Submission caret button exists", () => { OneMacPackageDetailsPage.verifyInitialSubmissionCaretBtnExists(); }); Then("expand the Initial Submission caret", () => { OneMacPackageDetailsPage.expandInitialSubmissionCaretBtn(); }); -Then("collapse the Initial Submission caret button", () => { - OneMacPackageDetailsPage.collapseInitialSubmissionCaretBtn(); -}); +// Then("collapse the Initial Submission caret button", () => { +// OneMacPackageDetailsPage.collapseInitialSubmissionCaretBtn(); +// }); Then("verify the Initial Submission download all button exists", () => { OneMacPackageDetailsPage.verifyInitialSubmissionDownloadAllBtnExists(); }); -Then("click the Initial Submission download all button", () => { - OneMacPackageDetailsPage.clickInitialSubmissionDownloadAllBtn(); -}); +// Then("click the Initial Submission download all button", () => { +// OneMacPackageDetailsPage.clickInitialSubmissionDownloadAllBtn(); +// }); Then("verify the Withdrawal Requested caret button exists", () => { OneMacPackageDetailsPage.verifyWithdrawalRequestedCaretBtnExists(); }); Then("expand the Withdrawal Requested caret", () => { OneMacPackageDetailsPage.expandWithdrawalRequestedCaretBtn(); }); -Then("collapse the Withdrawal Requested caret button", () => { - OneMacPackageDetailsPage.collapseWithdrawalRequestedCaretBtn(); -}); +// Then("collapse the Withdrawal Requested caret button", () => { +// OneMacPackageDetailsPage.collapseWithdrawalRequestedCaretBtn(); +// }); +// in a test, but commented out Then("verify the Withdrawal Requested download all button exists", () => { OneMacPackageDetailsPage.verifyWithdrawalRequestedDownloadAllBtnExists(); }); -Then("click the Withdrawal Requested download all button", () => { - OneMacPackageDetailsPage.clickWithdrawalRequestedDownloadAllBtn(); -}); +// Then("click the Withdrawal Requested download all button", () => { +// OneMacPackageDetailsPage.clickWithdrawalRequestedDownloadAllBtn(); +// }); diff --git a/tests/cypress/support/pages/oneMacPackageDetailsPage.js b/tests/cypress/support/pages/oneMacPackageDetailsPage.js index 9ea67c2da..1cbafb45d 100644 --- a/tests/cypress/support/pages/oneMacPackageDetailsPage.js +++ b/tests/cypress/support/pages/oneMacPackageDetailsPage.js @@ -188,9 +188,9 @@ export class oneMacPackageDetailsPage { verifyTypeContainsMedicaidSPA() { cy.xpath(typeHeader).next().contains("Medicaid SPA"); } - verifyTypeContainsCHIPSPA() { - cy.xpath(typeHeader).next().contains("CHIP SPA"); - } + // verifyTypeContainsCHIPSPA() { + // cy.xpath(typeHeader).next().contains("CHIP SPA"); + // } verifyParentWaiverNumberHeaderExists() { cy.xpath(parentWaiverNumberHeader).should("be.visible"); } @@ -230,24 +230,24 @@ export class oneMacPackageDetailsPage { cy.get(appKTopRaiRespCaret).scrollIntoView().should("be.visible"); cy.get(appKTopRaiRespCaret).should("be.enabled"); } - verifyCHIPTopRaiRespCaretTitle() { - cy.get(chipTopRaiRespCaret).scrollIntoView().contains("Submitted on"); - } - verifyMedicaidTopRaiRespCaretTitle() { - cy.get(medicaidTopRaiRespCaret).scrollIntoView().contains("Submitted on"); - } - verifyAppKTopRaiRespCaretTitle() { - cy.get(appKTopRaiRespCaret).scrollIntoView().contains("Submitted on"); - } - verifyCHIPTopRaiRespCardExists() { - cy.get(chipTopRaiRespCard).scrollIntoView().should("be.visible"); - } - verifyMedicaidTopRaiRespCardExists() { - cy.get(medicaidTopRaiRespCard).scrollIntoView().should("be.visible"); - } - verifyAppKTopRaiRespCardExists() { - cy.get(appKTopRaiRespCard).scrollIntoView().should("be.visible"); - } + // verifyCHIPTopRaiRespCaretTitle() { + // cy.get(chipTopRaiRespCaret).scrollIntoView().contains("Submitted on"); + // } + // verifyMedicaidTopRaiRespCaretTitle() { + // cy.get(medicaidTopRaiRespCaret).scrollIntoView().contains("Submitted on"); + // } + // verifyAppKTopRaiRespCaretTitle() { + // cy.get(appKTopRaiRespCaret).scrollIntoView().contains("Submitted on"); + // } + // verifyCHIPTopRaiRespCardExists() { + // cy.get(chipTopRaiRespCard).scrollIntoView().should("be.visible"); + // } + // verifyMedicaidTopRaiRespCardExists() { + // cy.get(medicaidTopRaiRespCard).scrollIntoView().should("be.visible"); + // } + // verifyAppKTopRaiRespCardExists() { + // cy.get(appKTopRaiRespCard).scrollIntoView().should("be.visible"); + // } verifyCHIPTopRaiRespDownloadBtnExistsAndEnabled() { cy.get(chipTopRaiRespDownloadBtn).scrollIntoView().should("be.visible"); cy.get(chipTopRaiRespDownloadBtn).should("be.enabled"); @@ -261,37 +261,37 @@ export class oneMacPackageDetailsPage { cy.get(appKTopRaiRespDownloadBtn).should("be.enabled"); } - verifyTopRaiRespAddInfoDoesNotExist() { - cy.get(topRaiRespAddInfo).should("not.exist"); - } - verifyTopRaiRespAddInfoExists() { - cy.get(topRaiRespAddInfo).scrollIntoView().should("be.visible"); - } - verifyPackageOverviewNavBtnExists() { - cy.xpath(packageOverviewNavBtn).should("be.visible"); - } - verifyPackageOverviewNavBtnIsEnabled() { - cy.xpath(packageOverviewNavBtn).should("be.enabled"); - } - verifyPackageOverviewNavBtnIsExpanded() { - cy.xpath(packageOverviewNavBtn).should( - "have.attr", - "aria-expanded", - "true" - ); - } - verifyPackageDetailsNavBtnExists() { - cy.xpath(packageDetailsNavBtn).should("be.visible"); - } + // verifyTopRaiRespAddInfoDoesNotExist() { + // cy.get(topRaiRespAddInfo).should("not.exist"); + // } + // verifyTopRaiRespAddInfoExists() { + // cy.get(topRaiRespAddInfo).scrollIntoView().should("be.visible"); + // } + // verifyPackageOverviewNavBtnExists() { + // cy.xpath(packageOverviewNavBtn).should("be.visible"); + // } + // verifyPackageOverviewNavBtnIsEnabled() { + // cy.xpath(packageOverviewNavBtn).should("be.enabled"); + // } + // verifyPackageOverviewNavBtnIsExpanded() { + // cy.xpath(packageOverviewNavBtn).should( + // "have.attr", + // "aria-expanded", + // "true" + // ); + // } + // verifyPackageDetailsNavBtnExists() { + // cy.xpath(packageDetailsNavBtn).should("be.visible"); + // } verifyProposedEffectiveDateHeaderExists() { cy.xpath(proposedEffectiveDateHeader).should("be.visible"); } - verifyproposedEffectiveDateHeaderContainsNA() { - cy.xpath(proposedEffectiveDateHeader).next().contains("N/A"); - } - verifyproposedEffectiveDateHeaderContainsPending() { - cy.xpath(proposedEffectiveDateHeader).next().contains("Pending"); - } + // verifyproposedEffectiveDateHeaderContainsNA() { + // cy.xpath(proposedEffectiveDateHeader).next().contains("N/A"); + // } + // verifyproposedEffectiveDateHeaderContainsPending() { + // cy.xpath(proposedEffectiveDateHeader).next().contains("Pending"); + // } verifyproposedEffectiveDateHeaderContainsDate() { cy.xpath(proposedEffectiveDateHeader) .next() @@ -303,47 +303,47 @@ export class oneMacPackageDetailsPage { verifyFinalDispositionDateHeaderDoesNotExists() { cy.xpath(finalDispositionDateHeader).should("not.exist"); } - verifyFinalDispositionDateHeaderContainsDate() { - cy.xpath(finalDispositionDateHeader) - .next() - .contains(/^[a-zA-Z]{3}.\d{2}.\d{4}||^[a-zA-Z]{3}.\d{1}.\d{4}/); - } + // verifyFinalDispositionDateHeaderContainsDate() { + // cy.xpath(finalDispositionDateHeader) + // .next() + // .contains(/^[a-zA-Z]{3}.\d{2}.\d{4}||^[a-zA-Z]{3}.\d{1}.\d{4}/); + // } verifyApprovedEffectiveDateHeaderExists() { cy.xpath(approvedEffectiveDateHeader).should("be.visible"); } verifyApprovedEffectiveDateHeaderDoesNotExists() { cy.xpath(approvedEffectiveDateHeader).should("not.exist"); } - verifyApprovedEffectiveDateHeaderContainsDate() { - cy.xpath(approvedEffectiveDateHeader) - .next() - .contains(/^[a-zA-Z]{3}.\d{2}.\d{4}||^[a-zA-Z]{3}.\d{1}.\d{4}/); - } - verifyActualEffectiveDateHeaderExists() { - cy.xpath(actualEffectiveDateHeader).should("be.visible"); - } - verifyActualEffectiveDateHeaderDoesNotExists() { - cy.xpath(actualEffectiveDateHeader).should("not.exist"); - } - verifyActualEffectiveDateHeaderContainsDate() { - cy.xpath(actualEffectiveDateHeader) - .next() - .contains(/^[a-zA-Z]{3}.\d{2}.\d{4}||^[a-zA-Z]{3}.\d{1}.\d{4}/); - } + // verifyApprovedEffectiveDateHeaderContainsDate() { + // cy.xpath(approvedEffectiveDateHeader) + // .next() + // .contains(/^[a-zA-Z]{3}.\d{2}.\d{4}||^[a-zA-Z]{3}.\d{1}.\d{4}/); + // } + // verifyActualEffectiveDateHeaderExists() { + // cy.xpath(actualEffectiveDateHeader).should("be.visible"); + // } + // verifyActualEffectiveDateHeaderDoesNotExists() { + // cy.xpath(actualEffectiveDateHeader).should("not.exist"); + // } + // verifyActualEffectiveDateHeaderContainsDate() { + // cy.xpath(actualEffectiveDateHeader) + // .next() + // .contains(/^[a-zA-Z]{3}.\d{2}.\d{4}||^[a-zA-Z]{3}.\d{1}.\d{4}/); + // } verifyFormalRAIReceivedDateHeaderExists() { cy.xpath(formalRAIReceivedDateHeader).should("be.visible"); } - verifyFormalRAIReceivedDateHeaderDoesNotExists() { - cy.xpath(formalRAIReceivedDateHeader).should("not.exist"); - } + // verifyFormalRAIReceivedDateHeaderDoesNotExists() { + // cy.xpath(formalRAIReceivedDateHeader).should("not.exist"); + // } verifyFormalRAIReceivedDateHeaderContainsDate() { cy.xpath(formalRAIReceivedDateHeader) .next() .contains(/^[a-zA-Z]{3}.\d{2}.\d{4}||^[a-zA-Z]{3}.\d{1}.\d{4}/); } - verifyAmendmentNumberHeaderExists() { - cy.xpath(amendmentNumberHeader).should("be.visible"); - } + // verifyAmendmentNumberHeaderExists() { + // cy.xpath(amendmentNumberHeader).should("be.visible"); + // } verifyAmendmentNumbermatches(anumber) { cy.xpath(amendmentNumberHeader).next().contains(anumber); } @@ -381,37 +381,37 @@ export class oneMacPackageDetailsPage { clickWithdrawBtn() { cy.xpath(withdrawBtn).click(); } - clickWithdrawConfirmationBtn() { - cy.xpath(withdrawConfirmationBtn).click(); - } - verifySubmissionMsgForWithdrawnAmendment() { - cy.get(successMessage).contains( - "Your submission package has successfully been withdrawn" - ); - } - verifyAmendmentDetailSectionExists() { - cy.xpath(amendmentHeaders).should("be.visible"); - } - clickTempExtensionsNavBtn() { - cy.xpath(tempExtensionsNavBtn).click(); - } - verifyTempExtensionIDExists(num) { - cy.xpath(tempExtensionID).contains(num).should("be.visible"); - } - clickTempExtensionID(num) { - cy.xpath(tempExtensionID).contains(num).click(); - } - clickTempExtensionActionBtn(num) { - cy.xpath(tempExtensionID) - .contains(num) - .parents("tr") - .first() - .find("button") - .click(); - } - clickWithdrawBtnOnTempExt() { - cy.xpath(withdrawBtnOnTempExt).filter(":visible").click(); - } + // clickWithdrawConfirmationBtn() { + // cy.xpath(withdrawConfirmationBtn).click(); + // } + // verifySubmissionMsgForWithdrawnAmendment() { + // cy.get(successMessage).contains( + // "Your submission package has successfully been withdrawn" + // ); + // } + // verifyAmendmentDetailSectionExists() { + // cy.xpath(amendmentHeaders).should("be.visible"); + // } + // clickTempExtensionsNavBtn() { + // cy.xpath(tempExtensionsNavBtn).click(); + // } + // verifyTempExtensionIDExists(num) { + // cy.xpath(tempExtensionID).contains(num).should("be.visible"); + // } + // clickTempExtensionID(num) { + // cy.xpath(tempExtensionID).contains(num).click(); + // } + // clickTempExtensionActionBtn(num) { + // cy.xpath(tempExtensionID) + // .contains(num) + // .parents("tr") + // .first() + // .find("button") + // .click(); + // } + // clickWithdrawBtnOnTempExt() { + // cy.xpath(withdrawBtnOnTempExt).filter(":visible").click(); + // } verifySubjectHeaderExists() { cy.xpath(subjectHeader).should("be.visible"); } @@ -469,25 +469,25 @@ export class oneMacPackageDetailsPage { } }); } - collapseFormalRAIResponseCaretBtn() { - cy.xpath(formalRAIResponseCaretBtn) - .invoke("attr", "aria-expanded") - .then(($isExpanded) => { - if ($isExpanded === "true") { - //only click to expand - cy.xpath(formalRAIResponseCaretBtn).click(); - } - }); - } - clickFormalRAIResponseCaretBtn() { - cy.xpath(formalRAIResponseCaretBtn).click(); - } + // collapseFormalRAIResponseCaretBtn() { + // cy.xpath(formalRAIResponseCaretBtn) + // .invoke("attr", "aria-expanded") + // .then(($isExpanded) => { + // if ($isExpanded === "true") { + // //only click to expand + // cy.xpath(formalRAIResponseCaretBtn).click(); + // } + // }); + // } + // clickFormalRAIResponseCaretBtn() { + // cy.xpath(formalRAIResponseCaretBtn).click(); + // } verifyFormalRAIResponseDownloadAllBtnExists() { cy.xpath(formalRAIResponseDownloadAllBtn).should("be.visible"); } - clickFormalRAIResponseDownloadAllBtn() { - cy.xpath(formalRAIResponseDownloadAllBtn).click(); - } + // clickFormalRAIResponseDownloadAllBtn() { + // cy.xpath(formalRAIResponseDownloadAllBtn).click(); + // } verifyInitialSubmissionCaretBtnExists() { cy.xpath(initialSubmissionCaretBtn).should("be.visible"); } @@ -504,22 +504,22 @@ export class oneMacPackageDetailsPage { } }); } - collapseInitialSubmissionCaretBtn() { - cy.xpath(initialSubmissionCaretBtn) - .invoke("attr", "aria-expanded") - .then(($isExpanded) => { - if ($isExpanded === "true") { - //only click to expand - cy.xpath(initialSubmissionCaretBtn).click(); - } - }); - } + // collapseInitialSubmissionCaretBtn() { + // cy.xpath(initialSubmissionCaretBtn) + // .invoke("attr", "aria-expanded") + // .then(($isExpanded) => { + // if ($isExpanded === "true") { + // //only click to expand + // cy.xpath(initialSubmissionCaretBtn).click(); + // } + // }); + // } verifyInitialSubmissionDownloadAllBtnExists() { cy.xpath(initialSubmissionDownloadAllBtn).should("be.visible"); } - clickInitialSubmissionDownloadAllBtn() { - cy.xpath(initialSubmissionDownloadAllBtn).click(); - } + // clickInitialSubmissionDownloadAllBtn() { + // cy.xpath(initialSubmissionDownloadAllBtn).click(); + // } verifyWithdrawalRequestedCaretBtnExists() { cy.xpath(withdrawalRequestedCaretBtn).should("be.visible"); } @@ -536,21 +536,21 @@ export class oneMacPackageDetailsPage { } }); } - collapseWithdrawalRequestedCaretBtn() { - cy.xpath(withdrawalRequestedCaretBtn) - .invoke("attr", "aria-expanded") - .then(($isExpanded) => { - if ($isExpanded === "true") { - //only click to expand - cy.xpath(withdrawalRequestedCaretBtn).click(); - } - }); - } + // collapseWithdrawalRequestedCaretBtn() { + // cy.xpath(withdrawalRequestedCaretBtn) + // .invoke("attr", "aria-expanded") + // .then(($isExpanded) => { + // if ($isExpanded === "true") { + // //only click to expand + // cy.xpath(withdrawalRequestedCaretBtn).click(); + // } + // }); + // } verifyWithdrawalRequestedDownloadAllBtnExists() { cy.xpath(withdrawalRequestedDownloadAllBtn).should("be.visible"); } - clickWithdrawalRequestedDownloadAllBtn() { - cy.xpath(withdrawalRequestedDownloadAllBtn).click(); - } + // clickWithdrawalRequestedDownloadAllBtn() { + // cy.xpath(withdrawalRequestedDownloadAllBtn).click(); + // } } export default oneMacPackageDetailsPage; diff --git a/tests/cypress/support/pages/oneMacSubmissionTypePage.js b/tests/cypress/support/pages/oneMacSubmissionTypePage.js index 924361671..2c2248bec 100644 --- a/tests/cypress/support/pages/oneMacSubmissionTypePage.js +++ b/tests/cypress/support/pages/oneMacSubmissionTypePage.js @@ -65,12 +65,12 @@ export class oneMacSubmissionTypePage { clickStatePlanAmendmentSPA() { cy.xpath(statePlanAmendmentSPA).click(); } - verifyNewWaiverPage() { - cy.url().should("include", "/newwaiver"); - } - verifyNewSPAPage() { - cy.url().should("include", "/newspa"); - } + // verifyNewWaiverPage() { + // cy.url().should("include", "/newwaiver"); + // } + // verifyNewSPAPage() { + // cy.url().should("include", "/newspa"); + // } verifyNewInitialWaiverPage() { cy.url().should("include", "/initial-waiver"); } From 7ab111dd4347f629089cf6d768e70c5ae2223e91 Mon Sep 17 00:00:00 2001 From: Kristin Grue Date: Wed, 4 Oct 2023 08:58:56 -0400 Subject: [PATCH 2/3] deleted commented out sections --- tests/cypress/cypress/e2e/common/steps.js | 296 ------------------ .../support/pages/oneMacDashboardPage.js | 18 -- .../support/pages/oneMacPackageDetailsPage.js | 167 ---------- .../oneMacRequestWaiverTemporaryExtension.js | 22 -- .../support/pages/oneMacRespondToRAIPage.js | 17 - .../support/pages/oneMacSubmissionTypePage.js | 9 - 6 files changed, 529 deletions(-) diff --git a/tests/cypress/cypress/e2e/common/steps.js b/tests/cypress/cypress/e2e/common/steps.js index b41ad228c..4eaa926ba 100644 --- a/tests/cypress/cypress/e2e/common/steps.js +++ b/tests/cypress/cypress/e2e/common/steps.js @@ -2115,9 +2115,6 @@ Then("verify a type containing SPA exists for the Type", () => { Then("verify the type is Medicaid SPA", () => { OneMacPackageDetailsPage.verifyTypeContainsMedicaidSPA(); }); -// Then("verify the type is CHIP SPA ", () => { -// OneMacPackageDetailsPage.verifyTypeContainsCHIPSPA(); -// }); Then("verify the type is Initial Waiver", () => { OneMacPackageDetailsPage.verifyTypeContainsInitialWaiver(); }); @@ -2179,18 +2176,6 @@ Then( OneMacRespondToRAIPage.verifyPageHeader(); } ); -// Then("click back arrow", () => { -// OneMacRespondToRAIPage.clickBackArrow(); -// }); -// Then("click Leave, anyway", () => { -// OneMacRespondToRAIPage.clickLeaveAnyway(); -// }); -// Then("verify user is on new spa page", () => { -// OneMacSubmissionTypePage.verifyNewSPAPage(); -// }); -// Then("verify user is on new waiver page", () => { -// OneMacSubmissionTypePage.verifyNewWaiverPage(); -// }); Then("verify user is on new initial waiver page", () => { OneMacSubmissionTypePage.verifyNewInitialWaiverPage(); }); @@ -2239,81 +2224,6 @@ Then("verify RAI Responses header exists", () => { Then("verify RAI Responses header does not exist", () => { OneMacPackageDetailsPage.verifyRaiResponseHeaderDoesNotExist(); }); -// Then( -// "verify the Medicaid RAI Responses caret at the top of the list exists and is enabled", -// () => { -// OneMacPackageDetailsPage.verifyMedicaidTopRaiRespCaretExistsThenEnabled(); -// } -// ); -// Then( -// "verify the CHIP RAI Responses caret at the top of the list exists and is enabled", -// () => { -// OneMacPackageDetailsPage.verifyCHIPTopRaiRespCaretExistsThenEnabled(); -// } -// ); -// Then( -// "verify the Appendix K RAI Responses caret at the top of the list exists and is enabled", -// () => { -// OneMacPackageDetailsPage.verifyAppKTopRaiRespCaretExistsThenEnabled(); -// } -// ); -// Then( -// "verify the title of the Medicaid RAI Responses caret at the top of the list is in Submitted on format", -// () => { -// OneMacPackageDetailsPage.verifyMedicaidTopRaiRespCaretTitle(); -// } -// ); -// Then( -// "verify the title of the CHIP RAI Responses caret at the top of the list is in Submitted on format", -// () => { -// OneMacPackageDetailsPage.verifyCHIPTopRaiRespCaretTitle(); -// } -// ); -// Then( -// "verify the title of the Appendix K RAI Responses caret at the top of the list is in Submitted on format", -// () => { -// OneMacPackageDetailsPage.verifyAppKTopRaiRespCaretTitle(); -// } -// ); -// Then( -// "verify the Medicaid RAI response card at the top of the list exists", -// () => { -// OneMacPackageDetailsPage.verifyMedicaidTopRaiRespCardExists(); -// } -// ); -// Then("verify the CHIP RAI response card at the top of the list exists", () => { -// OneMacPackageDetailsPage.verifyCHIPTopRaiRespCardExists(); -// }); -// Then( -// "verify the Appendix K RAI response card at the top of the list exists", -// () => { -// OneMacPackageDetailsPage.verifyAppKTopRaiRespCardExists(); -// } -// ); -// Then( -// "verify the download button for the Medicaid RAI response at the top of the list exists", -// () => { -// OneMacPackageDetailsPage.verifyMedicaidTopRaiRespDownloadBtnExistsThenEnabled(); -// } -// ); -// Then( -// "verify the download button for the CHIP RAI response at the top of the list exists", -// () => { -// OneMacPackageDetailsPage.verifyCHIPTopRaiRespDownloadBtnExistsThenEnabled(); -// } -// ); -// Then( -// "verify the download button for the Appendix K RAI response at the top of the list exists", -// () => { -// OneMacPackageDetailsPage.verifyAppKTopRaiRespDownloadBtnxistsThenEnabled(); -// } -// ); -// Then("verify the first RAI response does not have Additional Info", () => { -// OneMacPackageDetailsPage.verifyTopRaiRespAddInfoDoesNotExist(); -// }); -// Then("verify the first RAI response has Additional Info", () => { -// OneMacPackageDetailsPage.verifyTopRaiRespAddInfoExists(); -// }); Then("click the actions button in row one", () => { OneMacPackagePage.clickPackageRowOneActionsBtn(); }); @@ -2336,18 +2246,6 @@ Then("verify the Add Amendment button is displayed", () => { Then("verify the Respond to RAI button is displayed", () => { OneMacPackagePage.verifyRespondToRAIBtnExists(); }); -// Then("verify Package Overview navigation button exists", () => { -// OneMacPackageDetailsPage.verifyPackageOverviewNavBtnExists(); -// }); -// Then("verify Package Overview navigation button is enabled", () => { -// OneMacPackageDetailsPage.verifyPackageOverviewNavBtnIsEnabled(); -// }); -// Then("verify Package Overview navigation button is expanded", () => { -// OneMacPackageDetailsPage.verifyPackageOverviewNavBtnIsExpanded(); -// }); -// Then("verify Package Details is listed under Package Overview", () => { -// OneMacPackageDetailsPage.verifyPackageDetailsNavBtnExists(); -// }); Then("click the pending user action button", () => { OneMacUserManagmentPage.clickPendingUserActionBtn(); }); @@ -2366,12 +2264,6 @@ Then( OneMacPackageDetailsPage.verifyProposedEffectiveDateHeaderExists(); } ); -// Then("verify the Proposed Effective Date is NA", () => { -// OneMacPackageDetailsPage.verifyproposedEffectiveDateHeaderContainsNA(); -// }); -// Then("verify the Proposed Effective Date is Pending", () => { -// OneMacPackageDetailsPage.verifyproposedEffectiveDateHeaderContainsPending(); -// }); Then( "verify the Proposed Effective Date is a date formatted like Mon dd yyyy", () => { @@ -2390,12 +2282,6 @@ Then( OneMacPackageDetailsPage.verifyFinalDispositionDateHeaderDoesNotExists(); } ); -// Then( -// "verify the Final Disposition Date is a date formatted like Mon dd yyyy", -// () => { -// OneMacPackageDetailsPage.verifyFinalDispositionDateHeaderContainsDate(); -// } -// ); Then( "verify there is an Approved Effective Date in the details section", () => { @@ -2408,51 +2294,18 @@ Then( OneMacPackageDetailsPage.verifyApprovedEffectiveDateHeaderDoesNotExists(); } ); -// Then( -// "verify the Approved Effective Date is a date formatted like Mon dd yyyy", -// () => { -// OneMacPackageDetailsPage.verifyApprovedEffectiveDateHeaderContainsDate(); -// } -// ); -// Then( -// "verify there is an Actual Effective Date header in the details section", -// () => { -// OneMacPackageDetailsPage.verifyActualEffectiveDateHeaderExists(); -// } -// ); -// Then( -// "verify there is not an Actual Effective Date header in the details section", -// () => { -// OneMacPackageDetailsPage.verifyActualEffectiveDateHeaderDoesNotExists(); -// } -// ); -// Then( -// "verify the Actual Effective Date is a date formatted like Mon dd yyyy", -// () => { -// OneMacPackageDetailsPage.verifyActualEffectiveDateHeaderContainsDate(); -// } -// ); Then( "verify there is an Formal RAI Received Date header in the details section", () => { OneMacPackageDetailsPage.verifyFormalRAIReceivedDateHeaderExists(); } ); -// Then( -// "verify there is not an Formal RAI Received Date header in the details section", -// () => { -// OneMacPackageDetailsPage.verifyFormalRAIReceivedDateHeaderDoesNotExists(); -// } -// ); Then( "verify the Formal RAI Received Date is a date formatted like Mon dd yyyy", () => { OneMacPackageDetailsPage.verifyFormalRAIReceivedDateHeaderContainsDate(); } ); -// Then("verify the Amendment Number header exists", () => { -// OneMacPackageDetailsPage.verifyAmendmentNumberHeaderExists(); -// }); Then("verify the waiver authority header exists", () => { OneMacPackageDetailsPage.verifyWaiverAuthorityHeaderExists(); }); @@ -2472,21 +2325,9 @@ Then("verify the additional information section exists", () => { Then("verify the Administrative Package Changes section exists", () => { OneMacPackageDetailsPage.verifyAdministrativePackageChangesSectionExists(); }); -// Then("verify the Formal RAI Responses section exists", () => { -// OneMacPackageDetailsPage.verifyFormalRAIResponsesSectionExists(); -// }); Then("click withdraw button", () => { OneMacPackageDetailsPage.clickWithdrawBtn(); }); -// Then("click withdraw confirmation", () => { -// OneMacPackageDetailsPage.clickWithdrawConfirmationBtn(); -// }); -// Then("verify submission message for withdrawn amendment", () => { -// OneMacPackageDetailsPage.verifySubmissionMsgForWithdrawnAmendment(); -// }); -// Then("verify the amendment details section exists", () => { -// OneMacPackageDetailsPage.verifyAmendmentDetailSectionExists(); -// }); Then("verify success message for denied role", () => { OneMacDashboardPage.verifySuccessMessageIsDisplayedForRoleChange(); }); @@ -2549,13 +2390,6 @@ Then("Type Temporary Extension Number {string}", (s) => { } }); }); -// Then("click on the link for temporary extension number 1", () => { -// cy.fixture("packageDashboardWaiverNumbers.json").then((data) => { -// OneMacPackageDetailsPage.clickTempExtensionID( -// data.newTemporaryExtensionNumber1 -// ); -// }); -// }); Then("verify the initial waiver parent ID is prefilled in the form", () => { OneMacSubmitNewWaiverActionPage.verifyParentInitialIDIsPrefilled(); }); @@ -2565,27 +2399,6 @@ Then("verify the renewal waiver parent ID is prefilled in the form", () => { Then("verify the package ID is prefilled in the form", () => { OneMacRespondToRAIPage.verifyIDIsPrefilled(); }); - -// Then("verify the temporary extension exists", () => { -// cy.fixture("packageDashboardWaiverNumbers.json").then((data) => { -// OneMacPackageDetailsPage.verifyTempExtensionIDExists( -// data.newTemporaryExtensionNumber1 -// ); -// }); -// }); -// Then("click the action button for temporary extension 2", () => { -// cy.fixture("packageDashboardWaiverNumbers.json").then((data) => { -// OneMacPackageDetailsPage.clickTempExtensionActionBtn( -// data.newTemporaryExtensionNumber2 -// ); -// }); -// }); -// Then("click withdraw button on the temp extension page", () => { -// OneMacPackageDetailsPage.clickWithdrawBtnOnTempExt(); -// }); -// Then("click on the Temporary Extension nav button", () => { -// OneMacPackageDetailsPage.clickTempExtensionsNavBtn(); -// }); Then("copy the ID from the link in the first row", () => { OneMacPackagePage.copyTheIDFromLinkInFirstRow(); }); @@ -2624,13 +2437,6 @@ Then("reset EUA CMS Read Only User state if needed", () => { } }); }); - -// Then( -// "verify the actions button is unavailable in the submission dashboard", -// () => { -// OneMacDashboardPage.verifyActionsBtnUnvailableOnFirstRow(); -// } -// ); Then("verify the actions button is disabled in the package dashboard", () => { OneMacDashboardPage.verifyActionsBtnDisabledOnFirstRow(); }); @@ -2739,76 +2545,15 @@ Then( OneMacFAQPage.verifyAttachmentsFor1915cRequestTempExtBody(); } ); -// Then( -// "Type {string} into Approved Initial or Renewal Waiver Number field", -// (n) => { -// OneMacRequestWaiverTemporaryExtension.inputApprovedBaseOrRenewalWaiverNumber( -// n -// ); -// } -// ); -// Then( -// "verify Approved Initial or Renewal Waiver Number error message is displayed", -// () => { -// OneMacRequestWaiverTemporaryExtension.verifyParentErrorMessageIsDisplayed(); -// } -// ); -// Then( -// "verify Approved Initial or Renewal Waiver Number error message text is correct", -// () => { -// OneMacRequestWaiverTemporaryExtension.verifyParentErrorMessageText(); -// } -// ); -// Then( -// "verify Approved Initial or Renewal Waiver Number error message is not displayed", -// () => { -// OneMacRequestWaiverTemporaryExtension.verifyParentErrorMessageIsNotDisplayed(); -// } -// ); -// Then("clear Approved Initial or Renewal Waiver Number input box", () => { -// OneMacRequestWaiverTemporaryExtension.clearApprovedBaseOrRenewalWaiverNumberInputBox(); -// }); -// Then("wait for {string} miliseconds", (s) => { -// cy.wait(parseInt(s)); -// }); Then("verify error message contains {string}", (msg) => { OneMacDefaultForms.verifyErrorMsgContains(msg); }); -// Then("search for Initial Waiver in RAI Issued status", () => { -// cy.fixture("packageDashboardWaiverNumbers.json").then((data) => { -// OneMacPackagePage.searchFor(data.initialWaiverInRAIStatus); -// }); -// cy.wait(1000); -// }); -// Then( -// "verify the Initial Waiver Number in RAI Issued status is pre-populated and uneditable", -// () => { -// cy.fixture("packageDashboardWaiverNumbers.json").then((data) => { -// OneMacRespondToRAIPage.verifyWaiverNumberMatchesID( -// data.initialWaiverInRAIStatus -// ); -// }); -// cy.wait(1000); -// } -// ); -// Then("search for the Appendix K Amendment in RAI Issued status", () => { -// cy.fixture("packageDashboardWaiverNumbers.json").then((data) => { -// OneMacPackagePage.searchFor(data.appKInRAIStatus); -// }); -// cy.wait(1000); -// }); Then( "verify the Appendix K Amendment in RAI Issued status is pre-populated and uneditable", () => { OneMacRespondToRAIPage.verifyAmendmentIDIsPrefilled(); } ); -// Then( -// "verify the Waiver Amendment in RAI Issued status is pre-populated and uneditable", -// () => { -// OneMacRespondToRAIPage.verifyAmendmentIDIsPrefilled(); -// } -// ); Then( "type new waiver renewal number {string} in 1915b Waiver Renewal Number field", (s) => { @@ -2875,13 +2620,6 @@ Then("search for new waiver renewal number {string}", (s) => { }); cy.wait(1000); }); - -// Then("search for new waiver amendment number 1", () => { -// cy.fixture("packageDashboardWaiverNumbers.json").then((d) => { -// OneMacPackagePage.searchFor(d.newWaiverAmendmentNum1); -// }); -// cy.wait(1000); -// }); Then( "type approved Initial Waiver number into Existing Waiver Number to Renew field", () => { @@ -2968,28 +2706,15 @@ Then( }); } ); -// Then("verify id number in the first row matches approved waiver number", () => { -// cy.fixture("packageDashboardWaiverNumbers.json").then((data) => { -// OneMacPackagePage.verifyIDNumberInFirstRowIs( -// data.approvedInitialWaiverNum1 -// ); -// }); -// }); Then("type Appendix K Submission 1 into Amendment Title field", () => { OneMacAppendixKAmendmentPage.inputAmendmentTitle("Appendix K Submission 1"); }); -// Then("verify id number in the first row matches Appendix K number", () => { -// OneMacPackagePage.verifyIDNumberInFirstRowIs("MD-10330.R00.12"); -// }); - Then("verify id number in the first row matches {string}", (s) => { OneMacPackagePage.verifyIDNumberInFirstRowIs(s); }); - Then("verify help text under Existing Waiver Number to Renew field", () => { OneMacSubmitNewWaiverActionPage.verifyParentFieldHelpText(); }); - Then( "verify the error message for renewals includes For renewals, the “R##” starts with ‘01’ and ascends.", () => { @@ -3103,47 +2828,26 @@ Then("verify the Formal RAI Response caret button exists", () => { Then("expand the Formal RAI Response caret button", () => { OneMacPackageDetailsPage.expandFormalRAIResponseCaretBtn(); }); -// Then("collapse the Formal RAI Response caret button", () => { -// OneMacPackageDetailsPage.collapseFormalRAIResponseCaretBtn(); -// }); -// Then("click the Formal RAI Response caret button", () => { -// OneMacPackageDetailsPage.clickFormalRAIResponseCaretBtn(); -// }); // in a test, but commented out Then("verify the Formal RAI Response download all button exists", () => { OneMacPackageDetailsPage.verifyFormalRAIResponseDownloadAllBtnExists(); }); -// Then("click the Formal RAI Response download all button", () => { -// OneMacPackageDetailsPage.clickFormalRAIResponseDownloadAllBtn(); -// }); Then("verify the Initial Submission caret button exists", () => { OneMacPackageDetailsPage.verifyInitialSubmissionCaretBtnExists(); }); Then("expand the Initial Submission caret", () => { OneMacPackageDetailsPage.expandInitialSubmissionCaretBtn(); }); -// Then("collapse the Initial Submission caret button", () => { -// OneMacPackageDetailsPage.collapseInitialSubmissionCaretBtn(); -// }); Then("verify the Initial Submission download all button exists", () => { OneMacPackageDetailsPage.verifyInitialSubmissionDownloadAllBtnExists(); }); -// Then("click the Initial Submission download all button", () => { -// OneMacPackageDetailsPage.clickInitialSubmissionDownloadAllBtn(); -// }); Then("verify the Withdrawal Requested caret button exists", () => { OneMacPackageDetailsPage.verifyWithdrawalRequestedCaretBtnExists(); }); Then("expand the Withdrawal Requested caret", () => { OneMacPackageDetailsPage.expandWithdrawalRequestedCaretBtn(); }); -// Then("collapse the Withdrawal Requested caret button", () => { -// OneMacPackageDetailsPage.collapseWithdrawalRequestedCaretBtn(); -// }); // in a test, but commented out Then("verify the Withdrawal Requested download all button exists", () => { OneMacPackageDetailsPage.verifyWithdrawalRequestedDownloadAllBtnExists(); }); -// Then("click the Withdrawal Requested download all button", () => { -// OneMacPackageDetailsPage.clickWithdrawalRequestedDownloadAllBtn(); -// }); diff --git a/tests/cypress/support/pages/oneMacDashboardPage.js b/tests/cypress/support/pages/oneMacDashboardPage.js index fb544bc83..583e3dbd2 100644 --- a/tests/cypress/support/pages/oneMacDashboardPage.js +++ b/tests/cypress/support/pages/oneMacDashboardPage.js @@ -8,12 +8,10 @@ const successMessageAfterRAIResponse = //Element is Xpath use cy.xpath instead of cy.get const IDNUMBER = (id) => `//a[text()="${id}"]`; //Element is Xpath use cy.xpath instead of cy.get -const SecondIDNUMBER = "//tbody/tr[2]/td[1]/a[1]"; //Element is Xpath use cy.xpath instead of cy.get const Type = "//td[@id='type-0']"; const date = "#submittedAt-0"; //Element is Xpath use cy.xpath instead of cy.get -const respondToRAIBTN = "//tbody/tr[1]/td[6]/button[1]"; //Element is Xpath use cy.xpath instead of cy.get //const respondToRAI = '//body/div[@id="simple-menu"]/div[3]/ul[1]/div[1]/li[1]'; const respondToRAI = '//li[(text()="Respond to RAI")]'; @@ -41,27 +39,23 @@ export class oneMacDashboardPage { clickNewSubmission() { cy.get(newSubmissionBTN).click(); } - verifySuccessMessageIs(s) { cy.get(successMessage).contains(s); } verifySuccessMessage1IsDisplayed() { cy.get(successMessage1).contains("Submission Completed"); } - verifySuccessMessageIsDisplayedAfterRAIResponse() { cy.xpath(successMessageAfterRAIResponse).contains( "Your submission has been received." ); } - verifyIDNumber(s) { cy.xpath(IDNUMBER(s)).first().should("exist"); } clickIDNumberLink(s) { cy.xpath(IDNUMBER(s)).click({ force: true }); } - verifyType(s) { cy.xpath(Type).contains(s); } @@ -71,24 +65,19 @@ export class oneMacDashboardPage { verifyDate() { cy.get(date).should("be.visible"); } - clickOnrespondToRAI(s) { cy.xpath(IDNUMBER(s)).parent().siblings().find("button").click(); cy.xpath(respondToRAI).filter(":visible").click(); } - verifySPARAIIDNumberMatchesMedicalSPAIDNumber(s) { cy.xpath(IDNUMBER(s)).should("be.visible").and("have.length", 2); } - verifySPARAIIDNumberMatchesCHIPSPAIDNumber(s) { cy.xpath(IDNUMBER(s)).should("be.visible").and("have.length", 2); } - clickUserManagementTab() { cy.get(userManagementTab).click(); } - verifyWeAreOnDashboardPage() { cy.url().should("include", "/dashboard"); } @@ -98,7 +87,6 @@ export class oneMacDashboardPage { verifyexportToEXcelCSVBTNIsDisplayed() { cy.get(exportToEXcelCSVBTN).should("be.visible"); } - verifyidNumberHeaderIsDisplayed() { cy.get(idNumberHeader).should("be.visible"); } @@ -117,7 +105,6 @@ export class oneMacDashboardPage { verifyNewSubmissionBTNIsDisplayed() { cy.get(newSubmissionBTN).should("be.visible"); } - verifyIDNumberIsDisplayed(s) { cy.xpath(IDNUMBER(s)).should("be.visible"); } @@ -127,12 +114,10 @@ export class oneMacDashboardPage { navigatetoURL(s) { cy.visit(s); } - clickOnSpaID() { cy.get(spaIDLink).click(); cy.wait(5000); } - verifyAttachmentExists(s) { cy.get(uploadedAttachments).contains(s); } @@ -145,9 +130,6 @@ export class oneMacDashboardPage { verifySuccessMessageIsDisplayedForRoleChange() { cy.get(rcSuccessMessage).contains("Status Change"); } - verifyActionsBtnUnvailableOnFirstRow() { - cy.get(actionsRowOne).not("button"); - } verifyActionsBtnDisabledOnFirstRow() { cy.get(actionsRowOne).find("button").should("be.disabled"); } diff --git a/tests/cypress/support/pages/oneMacPackageDetailsPage.js b/tests/cypress/support/pages/oneMacPackageDetailsPage.js index 1cbafb45d..2017cdafc 100644 --- a/tests/cypress/support/pages/oneMacPackageDetailsPage.js +++ b/tests/cypress/support/pages/oneMacPackageDetailsPage.js @@ -1,13 +1,9 @@ const medicaidTopRaiRespCaret = "#medicaidsparai0_caret-button"; const medicaidTopRaiRespDownloadBtn = "#dl_medicaidsparai0"; -const medicaidTopRaiRespCard = "#medicaidsparai0_caret"; -const topRaiRespAddInfo = "#addl-info-rai-0"; const chipTopRaiRespCaret = "#chipsparai0_caret-button"; const chipTopRaiRespDownloadBtn = "#dl_chipsparai0"; -const chipTopRaiRespCard = "#chipsparai0_caret"; const appKTopRaiRespCaret = "#waiverappkrai0_caret-button"; const appKTopRaiRespDownloadBtn = "#dl_waiverappkrai0"; -const appKTopRaiRespCard = "#waiverappkrai0_caret"; //Elements are Xpath use cy.xpath instead of cy.xpath const detailsPage = "//div[@class='form-container']"; @@ -36,17 +32,12 @@ const parentWaiverNumberHeader = const stateHeader = "//h3[text()='State']"; const initialSubmittedDateHeader = "//h3[text()='Initial Submission Date']"; const raiResponsesHeader = "//section//h2[text()='Formal RAI Responses']"; -const packageOverviewNavBtn = "//button[text()='Package Overview']"; -const packageDetailsNavBtn = - "//li[contains(@class, 'nav')]//a[text()='Package Details']"; const proposedEffectiveDateHeader = "//h3[contains(text(),'Proposed Effective Date')]"; const finalDispositionDateHeader = "//h3[contains(text(),'Final Disposition Date')]"; const approvedEffectiveDateHeader = "//h3[contains(text(),'Approved Effective Date')]"; -const actualEffectiveDateHeader = - "//h3[contains(text(),'Actual Effective Date')]"; const formalRAIReceivedDateHeader = "//h3[contains(text(),'Formal RAI Received')]"; const adminPkgChangeSection = "//h2[text()='Administrative Package Changes']"; @@ -57,15 +48,7 @@ const attachmentsSection = "//h2[text()='Supporting Documentation']"; const downloadAllBtn = "//button[contains(text(),'Download All')]"; const amendmentTitleHeader = "//h3[text()='Amendment Title']"; const amendmentNumberHeader = "//h3[text()='Amendment Number']"; -const successMessage = "#alert-bar"; -const withdrawConfirmationBtn = "//button[text()='Withdraw Package?']"; const withdrawBtn = "//a[text()='Withdraw Package']"; -const amendmentHeaders = "//h2[text()='Waiver Amendment']"; -const tempExtensionsNavBtn = - "//li[contains(@class, 'nav')]//a[text()='Temporary Extension']"; -const tempExtensionID = "//td[contains(@id,'componentId-')]"; -const withdrawBtnOnTempExt = "//li[text()='Withdraw Package']"; -const packageAction = "//td[contains(@id,'packageActions-')]"; const subjectHeader = "//h3[contains(text(),'Subject')]"; const descriptionHeader = "//h3[contains(text(),'Description')]"; const cPOCNameHeader = "//h3[contains(text(),'CPOC')]"; @@ -188,9 +171,6 @@ export class oneMacPackageDetailsPage { verifyTypeContainsMedicaidSPA() { cy.xpath(typeHeader).next().contains("Medicaid SPA"); } - // verifyTypeContainsCHIPSPA() { - // cy.xpath(typeHeader).next().contains("CHIP SPA"); - // } verifyParentWaiverNumberHeaderExists() { cy.xpath(parentWaiverNumberHeader).should("be.visible"); } @@ -230,24 +210,6 @@ export class oneMacPackageDetailsPage { cy.get(appKTopRaiRespCaret).scrollIntoView().should("be.visible"); cy.get(appKTopRaiRespCaret).should("be.enabled"); } - // verifyCHIPTopRaiRespCaretTitle() { - // cy.get(chipTopRaiRespCaret).scrollIntoView().contains("Submitted on"); - // } - // verifyMedicaidTopRaiRespCaretTitle() { - // cy.get(medicaidTopRaiRespCaret).scrollIntoView().contains("Submitted on"); - // } - // verifyAppKTopRaiRespCaretTitle() { - // cy.get(appKTopRaiRespCaret).scrollIntoView().contains("Submitted on"); - // } - // verifyCHIPTopRaiRespCardExists() { - // cy.get(chipTopRaiRespCard).scrollIntoView().should("be.visible"); - // } - // verifyMedicaidTopRaiRespCardExists() { - // cy.get(medicaidTopRaiRespCard).scrollIntoView().should("be.visible"); - // } - // verifyAppKTopRaiRespCardExists() { - // cy.get(appKTopRaiRespCard).scrollIntoView().should("be.visible"); - // } verifyCHIPTopRaiRespDownloadBtnExistsAndEnabled() { cy.get(chipTopRaiRespDownloadBtn).scrollIntoView().should("be.visible"); cy.get(chipTopRaiRespDownloadBtn).should("be.enabled"); @@ -260,38 +222,9 @@ export class oneMacPackageDetailsPage { cy.get(appKTopRaiRespDownloadBtn).scrollIntoView().should("be.visible"); cy.get(appKTopRaiRespDownloadBtn).should("be.enabled"); } - - // verifyTopRaiRespAddInfoDoesNotExist() { - // cy.get(topRaiRespAddInfo).should("not.exist"); - // } - // verifyTopRaiRespAddInfoExists() { - // cy.get(topRaiRespAddInfo).scrollIntoView().should("be.visible"); - // } - // verifyPackageOverviewNavBtnExists() { - // cy.xpath(packageOverviewNavBtn).should("be.visible"); - // } - // verifyPackageOverviewNavBtnIsEnabled() { - // cy.xpath(packageOverviewNavBtn).should("be.enabled"); - // } - // verifyPackageOverviewNavBtnIsExpanded() { - // cy.xpath(packageOverviewNavBtn).should( - // "have.attr", - // "aria-expanded", - // "true" - // ); - // } - // verifyPackageDetailsNavBtnExists() { - // cy.xpath(packageDetailsNavBtn).should("be.visible"); - // } verifyProposedEffectiveDateHeaderExists() { cy.xpath(proposedEffectiveDateHeader).should("be.visible"); } - // verifyproposedEffectiveDateHeaderContainsNA() { - // cy.xpath(proposedEffectiveDateHeader).next().contains("N/A"); - // } - // verifyproposedEffectiveDateHeaderContainsPending() { - // cy.xpath(proposedEffectiveDateHeader).next().contains("Pending"); - // } verifyproposedEffectiveDateHeaderContainsDate() { cy.xpath(proposedEffectiveDateHeader) .next() @@ -303,47 +236,20 @@ export class oneMacPackageDetailsPage { verifyFinalDispositionDateHeaderDoesNotExists() { cy.xpath(finalDispositionDateHeader).should("not.exist"); } - // verifyFinalDispositionDateHeaderContainsDate() { - // cy.xpath(finalDispositionDateHeader) - // .next() - // .contains(/^[a-zA-Z]{3}.\d{2}.\d{4}||^[a-zA-Z]{3}.\d{1}.\d{4}/); - // } verifyApprovedEffectiveDateHeaderExists() { cy.xpath(approvedEffectiveDateHeader).should("be.visible"); } verifyApprovedEffectiveDateHeaderDoesNotExists() { cy.xpath(approvedEffectiveDateHeader).should("not.exist"); } - // verifyApprovedEffectiveDateHeaderContainsDate() { - // cy.xpath(approvedEffectiveDateHeader) - // .next() - // .contains(/^[a-zA-Z]{3}.\d{2}.\d{4}||^[a-zA-Z]{3}.\d{1}.\d{4}/); - // } - // verifyActualEffectiveDateHeaderExists() { - // cy.xpath(actualEffectiveDateHeader).should("be.visible"); - // } - // verifyActualEffectiveDateHeaderDoesNotExists() { - // cy.xpath(actualEffectiveDateHeader).should("not.exist"); - // } - // verifyActualEffectiveDateHeaderContainsDate() { - // cy.xpath(actualEffectiveDateHeader) - // .next() - // .contains(/^[a-zA-Z]{3}.\d{2}.\d{4}||^[a-zA-Z]{3}.\d{1}.\d{4}/); - // } verifyFormalRAIReceivedDateHeaderExists() { cy.xpath(formalRAIReceivedDateHeader).should("be.visible"); } - // verifyFormalRAIReceivedDateHeaderDoesNotExists() { - // cy.xpath(formalRAIReceivedDateHeader).should("not.exist"); - // } verifyFormalRAIReceivedDateHeaderContainsDate() { cy.xpath(formalRAIReceivedDateHeader) .next() .contains(/^[a-zA-Z]{3}.\d{2}.\d{4}||^[a-zA-Z]{3}.\d{1}.\d{4}/); } - // verifyAmendmentNumberHeaderExists() { - // cy.xpath(amendmentNumberHeader).should("be.visible"); - // } verifyAmendmentNumbermatches(anumber) { cy.xpath(amendmentNumberHeader).next().contains(anumber); } @@ -381,37 +287,6 @@ export class oneMacPackageDetailsPage { clickWithdrawBtn() { cy.xpath(withdrawBtn).click(); } - // clickWithdrawConfirmationBtn() { - // cy.xpath(withdrawConfirmationBtn).click(); - // } - // verifySubmissionMsgForWithdrawnAmendment() { - // cy.get(successMessage).contains( - // "Your submission package has successfully been withdrawn" - // ); - // } - // verifyAmendmentDetailSectionExists() { - // cy.xpath(amendmentHeaders).should("be.visible"); - // } - // clickTempExtensionsNavBtn() { - // cy.xpath(tempExtensionsNavBtn).click(); - // } - // verifyTempExtensionIDExists(num) { - // cy.xpath(tempExtensionID).contains(num).should("be.visible"); - // } - // clickTempExtensionID(num) { - // cy.xpath(tempExtensionID).contains(num).click(); - // } - // clickTempExtensionActionBtn(num) { - // cy.xpath(tempExtensionID) - // .contains(num) - // .parents("tr") - // .first() - // .find("button") - // .click(); - // } - // clickWithdrawBtnOnTempExt() { - // cy.xpath(withdrawBtnOnTempExt).filter(":visible").click(); - // } verifySubjectHeaderExists() { cy.xpath(subjectHeader).should("be.visible"); } @@ -469,25 +344,9 @@ export class oneMacPackageDetailsPage { } }); } - // collapseFormalRAIResponseCaretBtn() { - // cy.xpath(formalRAIResponseCaretBtn) - // .invoke("attr", "aria-expanded") - // .then(($isExpanded) => { - // if ($isExpanded === "true") { - // //only click to expand - // cy.xpath(formalRAIResponseCaretBtn).click(); - // } - // }); - // } - // clickFormalRAIResponseCaretBtn() { - // cy.xpath(formalRAIResponseCaretBtn).click(); - // } verifyFormalRAIResponseDownloadAllBtnExists() { cy.xpath(formalRAIResponseDownloadAllBtn).should("be.visible"); } - // clickFormalRAIResponseDownloadAllBtn() { - // cy.xpath(formalRAIResponseDownloadAllBtn).click(); - // } verifyInitialSubmissionCaretBtnExists() { cy.xpath(initialSubmissionCaretBtn).should("be.visible"); } @@ -504,22 +363,9 @@ export class oneMacPackageDetailsPage { } }); } - // collapseInitialSubmissionCaretBtn() { - // cy.xpath(initialSubmissionCaretBtn) - // .invoke("attr", "aria-expanded") - // .then(($isExpanded) => { - // if ($isExpanded === "true") { - // //only click to expand - // cy.xpath(initialSubmissionCaretBtn).click(); - // } - // }); - // } verifyInitialSubmissionDownloadAllBtnExists() { cy.xpath(initialSubmissionDownloadAllBtn).should("be.visible"); } - // clickInitialSubmissionDownloadAllBtn() { - // cy.xpath(initialSubmissionDownloadAllBtn).click(); - // } verifyWithdrawalRequestedCaretBtnExists() { cy.xpath(withdrawalRequestedCaretBtn).should("be.visible"); } @@ -536,21 +382,8 @@ export class oneMacPackageDetailsPage { } }); } - // collapseWithdrawalRequestedCaretBtn() { - // cy.xpath(withdrawalRequestedCaretBtn) - // .invoke("attr", "aria-expanded") - // .then(($isExpanded) => { - // if ($isExpanded === "true") { - // //only click to expand - // cy.xpath(withdrawalRequestedCaretBtn).click(); - // } - // }); - // } verifyWithdrawalRequestedDownloadAllBtnExists() { cy.xpath(withdrawalRequestedDownloadAllBtn).should("be.visible"); } - // clickWithdrawalRequestedDownloadAllBtn() { - // cy.xpath(withdrawalRequestedDownloadAllBtn).click(); - // } } export default oneMacPackageDetailsPage; diff --git a/tests/cypress/support/pages/oneMacRequestWaiverTemporaryExtension.js b/tests/cypress/support/pages/oneMacRequestWaiverTemporaryExtension.js index 0f5dfb2a8..0b000a6d6 100644 --- a/tests/cypress/support/pages/oneMacRequestWaiverTemporaryExtension.js +++ b/tests/cypress/support/pages/oneMacRequestWaiverTemporaryExtension.js @@ -3,8 +3,6 @@ const errorMessageForWaiverNumber = "#transmittal-number-status-msg"; const waiverExtensionRequest = "//td[div[contains(text(),'Waiver Extension Request')]]"; const firstFileUploadBtn = "#uploader-input-0"; -const parentWaiverNumberInputBox = "#parent-number"; -const errorMsgForParentWaiverNumber = "#parent-number-status-msg"; const tempExtensionTypeBtn = "#temp-ext-type"; const tempExtensionTypeHeader = "//h3[contains(text(),'Temporary Extension Type')]"; @@ -13,15 +11,12 @@ export class oneMacRequestWaiverTemporaryExtension { inputWaiverNumber(s) { cy.get(waiverNumberInputBox).type(s); } - verifyErrorMessageIsNotDisplayed() { cy.get(errorMessageForWaiverNumber).should("not.exist"); } - clearWaiverNumberInputBox() { cy.get(waiverNumberInputBox).clear(); } - verifyErrorMessageIsDisplayed() { cy.get(errorMessageForWaiverNumber).should("be.visible"); } @@ -30,23 +25,6 @@ export class oneMacRequestWaiverTemporaryExtension { const filePath = "/files/15MB.pdf"; cy.get(firstFileUploadBtn).attachFile(filePath); } - inputApprovedBaseOrRenewalWaiverNumber(s) { - cy.get(parentWaiverNumberInputBox).type(s, { delay: 500 }); - } - verifyParentErrorMessageIsDisplayed() { - cy.get(errorMsgForParentWaiverNumber).should("be.visible"); - } - verifyParentErrorMessageText() { - cy.get(errorMsgForParentWaiverNumber).contains( - "The waiver number entered does not appear to match our records. Please enter an approved initial or renewal waiver number, using a dash after the two character state abbreviation." - ); - } - verifyParentErrorMessageIsNotDisplayed() { - cy.get(errorMsgForParentWaiverNumber).should("not.exist"); - } - clearApprovedBaseOrRenewalWaiverNumberInputBox() { - cy.get(parentWaiverNumberInputBox).clear(); - } selectOption1915bInTempExtensionType() { cy.get(tempExtensionTypeBtn).select("1915(b)"); } diff --git a/tests/cypress/support/pages/oneMacRespondToRAIPage.js b/tests/cypress/support/pages/oneMacRespondToRAIPage.js index 1dfeaa6b6..b4c7259c7 100644 --- a/tests/cypress/support/pages/oneMacRespondToRAIPage.js +++ b/tests/cypress/support/pages/oneMacRespondToRAIPage.js @@ -1,11 +1,7 @@ const pageHeader = "//h1[contains(text(),'Formal Request for Additional Information Response')]"; -const backArrow = "#back-button"; //Element is Xpath use cy.xpath instead of cy.get -const leaveAnywaysBtn = "//button[text()='Leave Anyway']"; const yesSubmitBtn = "//button[text()='Yes, Submit']"; -const prepopulatedWaiverNumber = - "//h3[text()='Waiver Number']/following-sibling::div"; const prepopulatedWaiverAmendmentNumber = "//h3[text()='Waiver Amendment Number']/following-sibling::div"; const modalContainer = "#react-aria-modal-dialog"; @@ -18,7 +14,6 @@ export class oneMacRespondToRAIPage { verifyPageHeader() { cy.xpath(pageHeader).should("be.visible"); } - verifyModalContainerExists() { cy.get(modalContainer).should("be.visible"); } @@ -31,22 +26,10 @@ export class oneMacRespondToRAIPage { verifyModalTextIs(s) { cy.get(modalText).contains(s); } - - clickBackArrow() { - cy.get(backArrow).click(); - } - - clickLeaveAnyway() { - cy.xpath(leaveAnywaysBtn).click(); - } - clickYesSubmitBTN() { cy.xpath(yesSubmitBtn).click(); cy.wait(8000); } - verifyWaiverNumberMatchesID(s) { - cy.xpath(prepopulatedWaiverNumber).should("have.text", s); - } verifyAppKMatchesID(s) { cy.xpath(prepopulatedWaiverAmendmentNumber).should("have.text", s); } diff --git a/tests/cypress/support/pages/oneMacSubmissionTypePage.js b/tests/cypress/support/pages/oneMacSubmissionTypePage.js index 2c2248bec..d3884e474 100644 --- a/tests/cypress/support/pages/oneMacSubmissionTypePage.js +++ b/tests/cypress/support/pages/oneMacSubmissionTypePage.js @@ -65,12 +65,6 @@ export class oneMacSubmissionTypePage { clickStatePlanAmendmentSPA() { cy.xpath(statePlanAmendmentSPA).click(); } - // verifyNewWaiverPage() { - // cy.url().should("include", "/newwaiver"); - // } - // verifyNewSPAPage() { - // cy.url().should("include", "/newspa"); - // } verifyNewInitialWaiverPage() { cy.url().should("include", "/initial-waiver"); } @@ -98,15 +92,12 @@ export class oneMacSubmissionTypePage { clickMedicaidSPA() { cy.xpath(cardLink).filter(medicaidSPA).click(); } - clickChipSPA() { cy.xpath(cardLink).filter(chipSPA).click(); } - clickWaiverActionUnderWaiverAction() { cy.xpath(waiverActionWaiverAction).click(); } - clickRequestTemporaryExtension() { cy.xpath(RequestTemporaryExtension).click(); } From 45266c8cd6ef1b992dad189a6d134605261f49c7 Mon Sep 17 00:00:00 2001 From: Kristin Grue Date: Wed, 4 Oct 2023 09:45:11 -0400 Subject: [PATCH 3/3] removed commented out tests, steps, and functions --- ...d_1915b_Waiver_Amendment_Form.spec.feature | 1 - ...lective_Waiver_Amendment_Form.spec.feature | 1 - ...e_Details_Appendix_K_CMS_User.spec.feature | 3 -- ...age_Details_CHIP_SPA_CMS_User.spec.feature | 1 - ...e_Details_CHIP_SPA_State_User.spec.feature | 1 - ...ils_Initial_Waiver_State_User.spec.feature | 1 - ...Details_Medicaid_SPA_CMS_User.spec.feature | 2 -- ...tails_Medicaid_SPA_State_User.spec.feature | 2 -- ...emporary_Extension_State_User.spec.feature | 1 - tests/cypress/cypress/e2e/common/steps.js | 24 -------------- .../support/pages/oneMacPackageDetailsPage.js | 33 ------------------- .../support/pages/oneMacPackagePage.js | 4 --- 12 files changed, 74 deletions(-) diff --git a/tests/cypress/cypress/e2e/Comprehensive_Capitated_1915b_Waiver_Amendment_Form.spec.feature b/tests/cypress/cypress/e2e/Comprehensive_Capitated_1915b_Waiver_Amendment_Form.spec.feature index 1fec30e2c..994187b89 100644 --- a/tests/cypress/cypress/e2e/Comprehensive_Capitated_1915b_Waiver_Amendment_Form.spec.feature +++ b/tests/cypress/cypress/e2e/Comprehensive_Capitated_1915b_Waiver_Amendment_Form.spec.feature @@ -122,7 +122,6 @@ Feature: Create a waiver Amendment # Then search for approved Initial Waiver Number 1 # Then click the actions button in row one # Then verify the Add Amendment button is displayed - # Then click the Add Amendment button # Then verify All other 1915 b Waivers is displayed under Waiver Authority # Then type new waiver amendment number 6 in 1915b Waiver Amendment Number field # Then select proposed effective date 3 months from today diff --git a/tests/cypress/cypress/e2e/FFS_Selective_Waiver_Amendment_Form.spec.feature b/tests/cypress/cypress/e2e/FFS_Selective_Waiver_Amendment_Form.spec.feature index 39b99b6c7..3ae957994 100644 --- a/tests/cypress/cypress/e2e/FFS_Selective_Waiver_Amendment_Form.spec.feature +++ b/tests/cypress/cypress/e2e/FFS_Selective_Waiver_Amendment_Form.spec.feature @@ -99,7 +99,6 @@ Feature: Create a waiver Amendment # Then search for approved Initial Waiver Number 1 # Then click the actions button in row one # Then verify the Add Amendment button is displayed - # Then click the Add Amendment button # Then verify 1915 b 4 FFS Selective Contracting waivers is displayed under Waiver Authority # Then type new waiver amendment number 7 in 1915b Waiver Amendment Number field # Then select proposed effective date 3 months from today diff --git a/tests/cypress/cypress/e2e/Package_Details_Appendix_K_CMS_User.spec.feature b/tests/cypress/cypress/e2e/Package_Details_Appendix_K_CMS_User.spec.feature index 791012162..e4e0a5789 100644 --- a/tests/cypress/cypress/e2e/Package_Details_Appendix_K_CMS_User.spec.feature +++ b/tests/cypress/cypress/e2e/Package_Details_Appendix_K_CMS_User.spec.feature @@ -109,9 +109,6 @@ Feature: Waiver Package Details View: Appendix K Amendment for a CMS User Then expand the Initial Submission caret Then verify the Initial Submission download all button exists Then verify the additional information section exists - #Then verify the Formal RAI Response caret button exists - #Then expand the Formal RAI Response caret button - #Then verify the Formal RAI Response download all button exists Scenario: Screen Enhance: Appendix K Details View - Approved diff --git a/tests/cypress/cypress/e2e/Package_Details_CHIP_SPA_CMS_User.spec.feature b/tests/cypress/cypress/e2e/Package_Details_CHIP_SPA_CMS_User.spec.feature index b53b754e2..bf11da99b 100644 --- a/tests/cypress/cypress/e2e/Package_Details_CHIP_SPA_CMS_User.spec.feature +++ b/tests/cypress/cypress/e2e/Package_Details_CHIP_SPA_CMS_User.spec.feature @@ -162,7 +162,6 @@ Feature: CHIP SPA CMS Details View - Card View with Actions Then verify there is an Approved Effective Date in the details section Then verify the description has a value displayed in the details section #Then verify the attachments section exists - #Then verify the download all button exists #Then verify the additional information section exists Scenario: Screen Enhance - Approved CHIP SPA diff --git a/tests/cypress/cypress/e2e/Package_Details_CHIP_SPA_State_User.spec.feature b/tests/cypress/cypress/e2e/Package_Details_CHIP_SPA_State_User.spec.feature index 619648fa8..bb0c7b104 100644 --- a/tests/cypress/cypress/e2e/Package_Details_CHIP_SPA_State_User.spec.feature +++ b/tests/cypress/cypress/e2e/Package_Details_CHIP_SPA_State_User.spec.feature @@ -208,7 +208,6 @@ Feature: CHIP SPA State Details View - Card View with Actions Then verify a date exists for the Initial Submission Date Then verify there is a Proposed Effective Date header in the details section #Then verify the attachments section exists - #Then verify the download all button exists #Then verify the additional information section exists Then verify subject is not visible in the details section Then verify description is not visible in the details section diff --git a/tests/cypress/cypress/e2e/Package_Details_Initial_Waiver_State_User.spec.feature b/tests/cypress/cypress/e2e/Package_Details_Initial_Waiver_State_User.spec.feature index a2aaf7413..b5b731bee 100644 --- a/tests/cypress/cypress/e2e/Package_Details_Initial_Waiver_State_User.spec.feature +++ b/tests/cypress/cypress/e2e/Package_Details_Initial_Waiver_State_User.spec.feature @@ -208,7 +208,6 @@ Feature: Waiver Package Details View: Initial Waivers Then verify there is a Proposed Effective Date header in the details section Then verify the Withdrawal Requested caret button exists Then expand the Withdrawal Requested caret - #Then verify the Withdrawal Requested download all button exists Then verify the Initial Submission caret button exists Then expand the Initial Submission caret Then verify the Initial Submission download all button exists diff --git a/tests/cypress/cypress/e2e/Package_Details_Medicaid_SPA_CMS_User.spec.feature b/tests/cypress/cypress/e2e/Package_Details_Medicaid_SPA_CMS_User.spec.feature index a18f263bc..8c90eadc1 100644 --- a/tests/cypress/cypress/e2e/Package_Details_Medicaid_SPA_CMS_User.spec.feature +++ b/tests/cypress/cypress/e2e/Package_Details_Medicaid_SPA_CMS_User.spec.feature @@ -67,7 +67,6 @@ Feature: Medicaid SPA CMS Details View - Card View with Actions Then verify there is an Approved Effective Date in the details section Then verify the description has a value displayed in the details section #Then verify the attachments section exists - #Then verify the download all button exists #Then verify the additional information section exists Scenario: Screen Enhance - Withdrawn Medicaid SPA @@ -161,7 +160,6 @@ Feature: Medicaid SPA CMS Details View - Card View with Actions Then verify there is an Approved Effective Date in the details section Then verify the description has a value displayed in the details section #Then verify the attachments section exists - #Then verify the download all button exists #Then verify the additional information section exists Scenario: Screen Enhance - Approved Medicaid SPA diff --git a/tests/cypress/cypress/e2e/Package_Details_Medicaid_SPA_State_User.spec.feature b/tests/cypress/cypress/e2e/Package_Details_Medicaid_SPA_State_User.spec.feature index 0358663d1..a8d619ac0 100644 --- a/tests/cypress/cypress/e2e/Package_Details_Medicaid_SPA_State_User.spec.feature +++ b/tests/cypress/cypress/e2e/Package_Details_Medicaid_SPA_State_User.spec.feature @@ -119,7 +119,6 @@ Feature: Medicaid SPA State Details View - Card View with Actions Then verify a date exists for the Initial Submission Date Then verify there is a Proposed Effective Date header in the details section #Then verify the attachments section exists - #Then verify the download all button exists #Then verify the additional information section exists Then verify subject is not visible in the details section Then verify description is not visible in the details section @@ -177,7 +176,6 @@ Feature: Medicaid SPA State Details View - Card View with Actions #Then verify a date exists for the Initial Submission Date Then verify there is a Proposed Effective Date header in the details section #Then verify the attachments section exists - #Then verify the download all button exists #Then verify the additional information section exists Then verify subject is not visible in the details section Then verify description is not visible in the details section diff --git a/tests/cypress/cypress/e2e/Package_Details_Temporary_Extension_State_User.spec.feature b/tests/cypress/cypress/e2e/Package_Details_Temporary_Extension_State_User.spec.feature index a3bcecdad..86d967ba1 100644 --- a/tests/cypress/cypress/e2e/Package_Details_Temporary_Extension_State_User.spec.feature +++ b/tests/cypress/cypress/e2e/Package_Details_Temporary_Extension_State_User.spec.feature @@ -76,5 +76,4 @@ Feature: Waiver Package Details View: Temporary Extension for a State User # Then verify there is an Initial Submission Date header in the details section # Then verify a date exists for the Initial Submission Date # Then verify the attachments section exists - # Then verify the download all button exists # Then verify the additional information section exists \ No newline at end of file diff --git a/tests/cypress/cypress/e2e/common/steps.js b/tests/cypress/cypress/e2e/common/steps.js index 4eaa926ba..beb928310 100644 --- a/tests/cypress/cypress/e2e/common/steps.js +++ b/tests/cypress/cypress/e2e/common/steps.js @@ -2236,10 +2236,6 @@ Then("click the Request Temporary Extension button", () => { Then("verify the Request Temporary Extension button is displayed", () => { OneMacPackagePage.verifyRequestTempExtensionBtnExists(); }); -// this test step is commented out in the tests -Then("click the Add Amendment button", () => { - OneMacPackagePage.clickAddAmendmentBtn(); -}); Then("verify the Add Amendment button is displayed", () => { OneMacPackagePage.verifyAddAmendmentBtnExists(); }); @@ -2315,10 +2311,6 @@ Then("verify the waiver authority is 1915c HCBS", () => { Then("verify the attachments section exists", () => { OneMacPackageDetailsPage.verifyAttachmentsSectionExists(); }); -// all uses of this test are there, but commented out -Then("verify the download all button exists", () => { - OneMacPackageDetailsPage.verifyDownloadAllBtnExists(); -}); Then("verify the additional information section exists", () => { OneMacPackageDetailsPage.verifyAdditionalInfoSectionExists(); }); @@ -2820,18 +2812,6 @@ Then( Then("verify Review Team SRT is not visible in the details section", () => { OneMacPackageDetailsPage.verifyReviewTeamSRTDoesNotExists(); }); -// in a test, but commented out -Then("verify the Formal RAI Response caret button exists", () => { - OneMacPackageDetailsPage.verifyFormalRAIResponseCaretBtnExists(); -}); -// in a test, but commented out -Then("expand the Formal RAI Response caret button", () => { - OneMacPackageDetailsPage.expandFormalRAIResponseCaretBtn(); -}); -// in a test, but commented out -Then("verify the Formal RAI Response download all button exists", () => { - OneMacPackageDetailsPage.verifyFormalRAIResponseDownloadAllBtnExists(); -}); Then("verify the Initial Submission caret button exists", () => { OneMacPackageDetailsPage.verifyInitialSubmissionCaretBtnExists(); }); @@ -2847,7 +2827,3 @@ Then("verify the Withdrawal Requested caret button exists", () => { Then("expand the Withdrawal Requested caret", () => { OneMacPackageDetailsPage.expandWithdrawalRequestedCaretBtn(); }); -// in a test, but commented out -Then("verify the Withdrawal Requested download all button exists", () => { - OneMacPackageDetailsPage.verifyWithdrawalRequestedDownloadAllBtnExists(); -}); diff --git a/tests/cypress/support/pages/oneMacPackageDetailsPage.js b/tests/cypress/support/pages/oneMacPackageDetailsPage.js index 2017cdafc..22cb738b6 100644 --- a/tests/cypress/support/pages/oneMacPackageDetailsPage.js +++ b/tests/cypress/support/pages/oneMacPackageDetailsPage.js @@ -45,7 +45,6 @@ const additionalInfoSection = "//section[contains(@id, 'addl-info-chrono')]//h2[text()='Additional Information']"; const waiverAuthorityHeader = "//h3[text()='Waiver Authority']"; const attachmentsSection = "//h2[text()='Supporting Documentation']"; -const downloadAllBtn = "//button[contains(text(),'Download All')]"; const amendmentTitleHeader = "//h3[text()='Amendment Title']"; const amendmentNumberHeader = "//h3[text()='Amendment Number']"; const withdrawBtn = "//a[text()='Withdraw Package']"; @@ -53,18 +52,12 @@ const subjectHeader = "//h3[contains(text(),'Subject')]"; const descriptionHeader = "//h3[contains(text(),'Description')]"; const cPOCNameHeader = "//h3[contains(text(),'CPOC')]"; const reviewTeamSRTHeader = "//h3[contains(text(),'Review Team (SRT)')]"; -const formalRAIResponseCaretBtn = - '//h2//button[contains(@id,"Formal RAI Response")]'; -const formalRAIResponseDownloadAllBtn = - '//button[contains(@id,"dl_Formal RAI Response")]'; const initialSubmissionCaretBtn = '//h2//button[contains(@id,"Initial Package")]'; const initialSubmissionDownloadAllBtn = '//button[contains(@id,"dl_Initial Package")]'; const withdrawalRequestedCaretBtn = '//h2//button[contains(@id,"Package0_caret-button")]'; -const withdrawalRequestedDownloadAllBtn = - '//button[contains(@id,"dl_Package-0")]'; export class oneMacPackageDetailsPage { verifyPackageDetailsPageIsVisible() { @@ -262,7 +255,6 @@ export class oneMacPackageDetailsPage { verifyAmendmentTitleIs(s) { cy.xpath(amendmentTitleHeader).next().contains(s); } - verifyWaiverAuthorityHeaderExists() { cy.xpath(waiverAuthorityHeader).should("be.visible"); } @@ -272,12 +264,6 @@ export class oneMacPackageDetailsPage { verifyAttachmentsSectionExists() { cy.xpath(attachmentsSection).should("be.visible"); } - verifyDownloadAllBtnExists() { - cy.xpath(downloadAllBtn) - .first() - .scrollIntoView({ easing: "linear" }) - .should("be.visible"); - } verifyAdditionalInfoSectionExists() { cy.xpath(additionalInfoSection).should("be.visible"); } @@ -331,22 +317,6 @@ export class oneMacPackageDetailsPage { verifyReviewTeamSRTDoesNotExists() { cy.xpath(reviewTeamSRTHeader).should("not.exist"); } - verifyFormalRAIResponseCaretBtnExists() { - cy.xpath(formalRAIResponseCaretBtn).should("be.visible"); - } - expandFormalRAIResponseCaretBtn() { - cy.xpath(formalRAIResponseCaretBtn) - .invoke("attr", "aria-expanded") - .then(($isExpanded) => { - if ($isExpanded === "false") { - //only click to expand - cy.xpath(formalRAIResponseCaretBtn).click(); - } - }); - } - verifyFormalRAIResponseDownloadAllBtnExists() { - cy.xpath(formalRAIResponseDownloadAllBtn).should("be.visible"); - } verifyInitialSubmissionCaretBtnExists() { cy.xpath(initialSubmissionCaretBtn).should("be.visible"); } @@ -382,8 +352,5 @@ export class oneMacPackageDetailsPage { } }); } - verifyWithdrawalRequestedDownloadAllBtnExists() { - cy.xpath(withdrawalRequestedDownloadAllBtn).should("be.visible"); - } } export default oneMacPackageDetailsPage; diff --git a/tests/cypress/support/pages/oneMacPackagePage.js b/tests/cypress/support/pages/oneMacPackagePage.js index 5363273f7..48db87437 100644 --- a/tests/cypress/support/pages/oneMacPackagePage.js +++ b/tests/cypress/support/pages/oneMacPackagePage.js @@ -209,7 +209,6 @@ const rowTwo = "tbody > tr:nth-child(2)"; const packageRowTwoSubmittedBy = "#submitter-1"; const packageRowTwoActions = "#packageActions-1"; //Element is Xpath use cy.xpath instead of cy.get -const allPackageRowActions = "//td[contains(@id,'packageActions')]"; const packageRowTwoExpirationDate = "#expirationTimestamp-1"; //Element is Xpath use cy.xpath instead of cy.get const childRows = "//tr[@class = 'child-row-expanded']"; @@ -1034,9 +1033,6 @@ export class oneMacPackagePage { verifyRequestTempExtensionBtnExists() { cy.xpath(RequestTempExtensionBtn).should("be.visible"); } - clickAddAmendmentBtn() { - cy.xpath(addAmendmentBtn).scrollIntoView().click(); - } verifyAddAmendmentBtnExists() { cy.xpath(addAmendmentBtn).scrollIntoView().should("be.visible"); }