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/FAQ_Page.spec.feature b/tests/cypress/cypress/e2e/FAQ_Page.spec.feature index ce88fef00..4e09f1903 100644 --- a/tests/cypress/cypress/e2e/FAQ_Page.spec.feature +++ b/tests/cypress/cypress/e2e/FAQ_Page.spec.feature @@ -69,14 +69,13 @@ Feature: OY2_Update_Text_on_FAQ_Page Then Verify OneMAC Help Desk Contact Info Section Exists Then Verify Phone Number Exists Then Verify actual Phone Number Exists - Then Verify Email Exists - Then Verify actual Email Exists + Then verify Contact Email label Exists + Then verify actual Contact Email address Exists Scenario: Verify screen enhancements on FAQ page Given I am on Login Page When Clicking on FAQ Tab - Then Verify page title is FAQ - Then Verify Frequently Asked Questions Exists + Then Verify page title is "Frequently Asked Questions" Scenario: Verify redirect link on spa Given I am on Login Page @@ -89,17 +88,31 @@ Feature: OY2_Update_Text_on_FAQ_Page Then Click on What is my SPA ID link Then Verify text contains Enter the State Plan Amendment transmittal number Assign consecutive numbers on a calendar year basis - # Scenario: Verify redirect link on waivers - # Given I am on Login Page - # When Clicking on Development Login - # When Login with state submitter user - # Then click on New Submission - # Then Click on Waiver Action - # Then Click on Waiver Action under Waiver Type - # Then Click on What is my Waiver ID Link - # Then Verify text contains "Waiver number must follow the format" + Scenario: Verify redirect link on 1915b4 waivers + Given I am on Login Page + When Clicking on Development Login + When Login with state submitter user + Then click on New Submission + Then Click on Waiver Action + Then click on 1915b Waiver Actions + Then click on 1915b 4 FFS Selective Contracting waivers + Then click on 1915b 4 FFS Selective Contracting New Initial Waiver + Then click on What is my Initial Waiver Number + Then verify What format is used to enter a 1915b Initial Waiver number body is visible + + Scenario: Verify redirect link on 1915b waivers + Given I am on Login Page + When Clicking on Development Login + When Login with state submitter user + Then click on New Submission + Then Click on Waiver Action + Then click on 1915b Waiver Actions + Then click on 1915b Comprehensive Capitated Waiver Authority + Then click on 1915b Comprehensive Capitated Renewal Waiver + Then click on What is my 1915b Waiver Renewal Number + Then verify What format is used to enter a 1915b Waiver Renewal number header is visible - Scenario: Screen enhancement + Scenario: Verify the Guides exist in the FAQ Given I am on Login Page When Clicking on FAQ Tab Then verify Onboarding Materials exists 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 415eea2f2..5aa88cbc1 100644 --- a/tests/cypress/cypress/e2e/common/steps.js +++ b/tests/cypress/cypress/e2e/common/steps.js @@ -95,48 +95,11 @@ Then("Add {string} file to form 179", (fileName) => { OneMacSubmitNewMedicaidSpaPage.addFileForForm179(fileName); }); -Then("Verify {string} is added to form 179", (fileName) => { - OneMacSubmitNewMedicaidSpaPage.verifyFileAddedForForm179(fileName); -}); - -Then("Verify {string} is not added to form 179", (fileName) => { - OneMacSubmitNewMedicaidSpaPage.verifyFileNotAddedForForm179(fileName); -}); - -Then("Delete file from form 179", () => { - OneMacSubmitNewMedicaidSpaPage.deleteFileFromForm179(); -}); - //End OY2-5869 Then("Add file for SPA Pages", () => { OneMacSubmitNewMedicaidSpaPage.uploadSPAPagesAddFile(); }); -Then("Add file {string} for SPA Pages", (fileName) => { - OneMacSubmitNewMedicaidSpaPage.addFilesToSpaPages(fileName); -}); - -Then("Add no files to SPA Pages", () => { - oneMacSubmitNewMedicaidSpaPage.addNoFilesToSpaPages(); -}); - -Then("Verify no files added to SPA Pages", () => { - oneMacSubmitNewMedicaidSpaPage.verifyNoFilesAttachedToSpaPages(); -}); - -Then("Verify {string} is added to SPA Pages", (fileName) => { - OneMacSubmitNewMedicaidSpaPage.verifyFileAddedForSpaPages(fileName); -}); - -Then("Verify file {string} exists in Spa Pages", (fileName) => { - OneMacSubmitNewMedicaidSpaPage.verifyFileNameExistsInSpaPages(fileName); -}); - -Then("Type Additonal Information Comments", () => { - OneMacSubmitNewMedicaidSpaPage.AdditionalInformationTypeComment( - "This is just a test" - ); -}); Then("Type Additonal Info Comments in new form", () => { OneMacSubmitNewMedicaidSpaPage.additionalInfoTypeComment( "This is just a test" @@ -179,18 +142,6 @@ Then( } ); -Then("click yes, submit RAI response button", () => { - OneMacRespondToRAIPage.clickYesSubmitBTN(); -}); -Then("verify submission warning text is visible", () => { - OneMacSubmitNewMedicaidSpaPage.verifySubmissionWarningTextIsVisible(); -}); -Then("verify submission warning text", () => { - OneMacSubmitNewMedicaidSpaPage.verifySubmissionWarningText(); -}); -Then("verify the form Submit Button exists", () => { - OneMacDefaultForms.verifySubmitBtnExists(); -}); Then("verify form cancel button exists", () => { OneMacDefaultForms.verifyCancelBtnExists(); }); @@ -212,25 +163,10 @@ Then("verify the success message is {string}", (s) => { Then("verify submission successful message in the alert bar", () => { OneMacDashboardPage.verifySuccessMessage1IsDisplayed(); }); -Then("verify submission date", () => { - OneMacDashboardPage.verifyDate(); -}); -Then("Verify submission type", () => { - OneMacDashboardPage.verifyType("Medicaid SPA"); -}); -Then("Verify submission Waiver type", () => { - OneMacDashboardPage.verifyType("Waiver"); -}); Then("Add file for RAI Response", () => { medicaidSPARAIResponsePage.uploadRAIResponseAddFile(); }); -Then("Add Additional Comments", () => { - medicaidSPARAIResponsePage.addCommentsRAIRespone(); -}); -Then("verify submission Successful message after RAI", () => { - OneMacDashboardPage.verifySuccessMessageIsDisplayedAfterRAIResponse(); -}); //this is for the oy2 8616 When("Login with cms role approver", () => { OneMacDevLoginPage.loginAsCMSRoleApprover(); @@ -265,9 +201,6 @@ Then("Role text is Displayed", () => { Then("Actual Role is Displayed", () => { OneMacMyProfilePage.verifyRole(); }); -Then("User Role is Read Only User", () => { - OneMacMyProfilePage.verifyRole(); -}); Then("Email text is Displayed", () => { OneMacMyProfilePage.verifyEmailHeader(); }); @@ -307,33 +240,9 @@ When("Login as a State System Admin", () => { Then("i am on Dashboard Page", () => { OneMacDashboardPage.verifyWeAreOnDashboardPage(); }); -Then("verify Submission List is Displayed", () => { - OneMacDashboardPage.verifySubmissionListIsDisplayed(); -}); Then("verify Export to Excel CSV is Displayed", () => { OneMacDashboardPage.verifyexportToEXcelCSVBTNIsDisplayed(); }); -Then("verify IDNumber is Displayed", () => { - OneMacDashboardPage.verifyidNumberHeaderIsDisplayed(); -}); -Then("verify Type is Displayed", () => { - OneMacDashboardPage.verifytypeHeaderIsDisplayed(); -}); -Then("verify state is Displaed", () => { - OneMacDashboardPage.verifyStateHeaderIsDisplayed(); -}); -Then("verify Initial Submission Date is Displayed", () => { - OneMacDashboardPage.verifyInitialSubmissionDateHeaderIsDisplayed(); -}); -Then("verify Submitted By is Displayed", () => { - OneMacDashboardPage.verifySubmittedByHeadersDisplayed(); -}); -Then("Click on the SPA ID Link", () => { - OneMacDashboardPage.clickOnSpaID(); -}); -Then("Verify {string} exists in the attachments", (fileName) => { - OneMacDashboardPage.verifyAttachmentExists(fileName); -}); Then("verify User Management is Displayed", () => { OneMacUserManagmentPage.verifyUserManagmentHeaderIsDisplayed(); }); @@ -382,10 +291,6 @@ Then("clear SPA ID in Medicaid SPA Input box", () => { OneMacSubmitNewMedicaidSpaPage.clearSPAIDInputBox(); }); -Then("Return to dashboard Page", () => { - OneMacSubmitNewMedicaidSpaPage.clickOnDashboardTab(); -}); - Then("type in invalid SPA ID on Medicaid SPA page", () => { OneMacSubmitNewMedicaidSpaPage.typeIncorrectSPAIDAndFormat(); }); @@ -429,10 +334,6 @@ Then("click on 1915b Comprehensive Capitated Waiver Authority", () => { OneMacSubmissionTypePage.click1915bComprehensiveCapitatedWaiverAuthority(); }); -Then("click on Waiver Action on Waiver Action Type page", () => { - OneMacSubmissionTypePage.clickWaiverActionUnderWaiverAction(); -}); - Then("click on 1915b 4 FFS Selective Contracting New Initial Waiver", () => { OneMacSubmissionTypePage.clickInitialWaiver(); }); @@ -536,13 +437,6 @@ Then("verify All Other CHIP SPA Submissions is a clickable option", () => { Then("click All Other CHIP SPA Submissions", () => { OneMacSubmissionTypePage.clickAllOtherChip(); }); -Then("select Action Type New Waiver", () => { - OneMacSubmitNewWaiverActionPage.selectNewWaiverUnderActionType(); -}); - -Then("select 1915b 4 FFS Selective Contracting waivers", () => { - OneMacSubmitNewWaiverActionPage.select1915b4FFSSelectiveContractingwaiversUnderWaiverAuthority(); -}); Then( "Add file for 1915b 4 FFS Selective Contracting waiver application pre-print", @@ -555,14 +449,6 @@ Then("Add file for Waiver RAI Response", () => { medicaidSPARAIResponsePage.uploadRAIResponseAddFile(); }); -Then("Click on Waiver Action under Waiver Type", () => { - OneMacSubmissionTypePage.clickWaiverActionUnderWaiverAction(); -}); - -Then("Click on New Waiver under Action type", () => { - OneMacSubmitNewWaiverActionPage.selectNewWaiverUnderActionType(); -}); - Then("verify error message is not present on New Waiver Page", () => { OneMacSubmitNewWaiverActionPage.verifyErrorMessageIsNotDisplayed(); }); @@ -577,9 +463,6 @@ Then("type in invalid Waiver Number", () => { OneMacSubmitNewWaiverActionPage.inputWaiverNumber("MD.123456"); }); -Then("Click the Request Extension button", () => { - OneMacSubmissionTypePage.clickRequestExtensionBtn(); -}); Then("Click on Request Temporary Extension in Package dashboard", () => { OneMacSubmissionTypePage.clickRequestTemporaryExtension(); }); @@ -698,9 +581,6 @@ Then("upload Waiver Extension Request", () => { OneMacRequestWaiverTemporaryExtension.uploadWaiverExtensionRequest(); }); -Then("Type {string} in Summary Box", (Comments) => { - OneMacSubmitNewWaiverActionPage.inputComments(Comments); -}); Then("type {string} in additional info textarea", (Comments) => { OneMacSubmitNewWaiverActionPage.inputAdditionalInfoText(Comments); }); @@ -712,14 +592,6 @@ Then( } ); -Then("Click on Waiver Amendment under Action type", () => { - OneMacSubmitNewWaiverActionPage.selectWaiverAmendmentUnderActionType(); -}); - -Then("Click on Request for waiver renewal from Action Type", () => { - OneMacSubmitNewWaiverActionPage.selectRequestForWaiverRenewalUnderActionType(); -}); - Then("type in Existing Waiver Number in new form", () => { OneMacSubmitNewWaiverActionPage.inputExistingWaiverNumberNewForms(); }); @@ -816,9 +688,6 @@ Then("verify id number in the first row matches CHIP SPA ID", () => { OneMacPackagePage.verifyIDNumberInFirstRowIs(data.newChipSPAID1); }); }); -Then("verify success message for Withdrawal", () => { - OneMacPackagePage.verifyPackageWithdrawalMessageIsDisplayed(); -}); Then("click on Packages", () => { OneMacDashboardPage.clickPackageTab(); @@ -844,12 +713,6 @@ Then( OneMacPackagePage.verifyexpirationDateColumnHeaderExists(); } ); -Then("expiration date on MD.32560 is Oct 14, 2026", () => { - OneMacPackagePage.verifyMD32560ExpirationDateIsSetTooct142026(); -}); -Then("Expiration Date value for generated Record is {string}", (s) => { - OneMacPackagePage.verifyExpirationDateFirstValue(s); -}); Then("Add file for Current State Plan", () => { OneMacCHIPSPAPage.uploadCurrentStatePlanFile(); }); @@ -879,14 +742,6 @@ When("Login with cms role approver Denied", () => { OneMacDevLoginPage.loginAsCMSUserDenied(); }); -Then("Actual Status is Displayed with Access Revoked", () => { - OneMacMyProfilePage.verifyAccessStatusRevoked(); -}); - -Then("Actual Status is Displayed with Access Denied", () => { - OneMacMyProfilePage.verifyAccessStatusDenied(); -}); - Then("Verify General Section Exists", () => { OneMacFAQPage.verifyGeneralSectionExists(); }); @@ -1097,23 +952,23 @@ Then("Verify Phone Number Exists", () => { Then("Verify actual Phone Number Exists", () => { OneMacFAQPage.verifyActualphoneNumberExists(); }); -Then("Verify Email Exists", () => { - OneMacFAQPage.verifyemailExists(); -}); -Then("Verify actual Email Exists", () => { - OneMacFAQPage.verifyActualemailExists(); +Then("verify Contact Email label Exists", () => { + OneMacFAQPage.verifyEmailExists(); }); -Then("Verify page title is FAQ", () => { - OneMacFAQPage.VerifypagetitleisFAQ(); +Then("verify actual Contact Email address Exists", () => { + OneMacFAQPage.verifyActualEmailExists(); }); -Then("Verify Frequently Asked Questions Exists", () => { - OneMacFAQPage.VerifyFrequentlyAskedQuestionsExists(); +Then("Verify page title is {string}", (s) => { + OneMacFAQPage.VerifyPageTitleIs(s); }); Then("Click on What is my SPA ID link", () => { OneMacSubmitNewMedicaidSpaPage.clickWhatIsMySPAIDLink(); }); -Then("Click on What is my Waiver ID Link", () => { - OneMacSubmitNewWaiverActionPage.clickWhatIsMyWaiverIdLink(); +Then("click on What is my Initial Waiver Number", () => { + OneMacSubmitNewWaiverActionPage.clickWhatIsMyInitialWaiverNumberLink(); +}); +Then("click on What is my 1915b Waiver Renewal Number", () => { + OneMacSubmitNewWaiverActionPage.clickWhatIsMyWaiverRenewalNumberLink(); }); Then("Home tab exists", () => { @@ -1331,12 +1186,6 @@ Then("verify Close Exists", () => { Then("verify Type Exists", () => { OneMacPackagePage.verifytypeDropDownExists(); }); -Then("verify Status Exists", () => { - OneMacPackagePage.verifystatusDropDownExists(); -}); -Then("verify CPOC Name dropdown button exists", () => { - OneMacPackagePage.verifyCPOCNameDropDownExists(); -}); Then("verify reset Exists", () => { OneMacPackagePage.verifyresetButtonExists(); }); @@ -1373,9 +1222,6 @@ Then("verify Medicaid SPA Exists", () => { Then("click on Status", () => { OneMacPackagePage.clickstatusDropDown(); }); -Then("verify rai response submitted exists", () => { - OneMacPackagePage.verifyraiResponseSubmittedCheckBoxExists(); -}); Then("verify Under Review checkbox exists", () => { OneMacPackagePage.verifyUnderReviewCheckBoxExists(); }); @@ -1400,24 +1246,12 @@ Then("click Under Review checkbox", () => { Then("click Waiver Terminated checkbox", () => { OneMacPackagePage.clickWaiverTerminatedCheckBox(); }); -Then("verify the Withdrawal Requested checkbox exists", () => { - OneMacPackagePage.verifyWithdrawalRequestedCheckBoxExists(); -}); Then("click the Withdrawal Requested checkbox", () => { OneMacPackagePage.clickWithdrawalRequestedCheckBox(); }); -Then( - "verify the Formal RAI Response - Withdrawal Requested checkbox exists", - () => { - OneMacPackagePage.verifyRaiResponseWithdrawalRequestedCheckBoxExists(); - } -); Then("click the Formal RAI Response - Withdrawal Requested checkbox", () => { OneMacPackagePage.clickRaiResponseWithdrawalRequestedCheckBox(); }); -Then("verify the RAI Response Withdraw Enabled checkbox exists", () => { - OneMacPackagePage.verifyRaiResponseWithdrawEnabledCheckBoxExists(); -}); Then("click the RAI Response Withdraw Enabled checkbox", () => { OneMacPackagePage.clickRaiResponseWithdrawEnabledCheckBox(); }); @@ -1457,9 +1291,6 @@ Then("click show hide columns button", () => { Then("verify Initial Submission Date exists", () => { OneMacPackagePage.verifycheckBoxInitialSubmissionDateExists(); }); -Then("verify expiration date exists", () => { - OneMacPackagePage.verifycheckBoxexpirationDateBTNExists(); -}); Then("verify state exists", () => { OneMacPackagePage.verifycheckboxStateExists(); }); @@ -1478,15 +1309,9 @@ Then("verify CPOC Name exists", () => { Then("verify Formal RAI Received checkbox exists", () => { OneMacPackagePage.verifyFormalRAIReceivedCheckboxExists(); }); -Then("verify Formal RAI Received checkbox does not exist", () => { - OneMacPackagePage.verifyFormalRAIReceivedCheckboxDoesNotExist(); -}); Then("verify Initial Submission Date column exists", () => { OneMacPackagePage.verifyinitialSubmissionDateColumnExists(); }); -Then("verify expiration date column exists", () => { - OneMacPackagePage.verifyexpirationDateColumnExists(); -}); Then("verify state column exists", () => { OneMacPackagePage.verifystateColumnExists(); }); @@ -1520,9 +1345,6 @@ Then("verify CPOC Name column does not exist", () => { Then("click Initial Submission Date checkbox", () => { OneMacPackagePage.clickCheckBoxInitialSubmissionDate(); }); -Then("click expiration date checkbox", () => { - OneMacPackagePage.clickCheckBoxexpirationDate(); -}); Then("click state checkbox", () => { OneMacPackagePage.clickCheckboxState(); }); @@ -1547,9 +1369,6 @@ Then("verify type column does not exist", () => { Then("verify state column does not exist", () => { OneMacPackagePage.verifystateColumnDoesNotExist(); }); -Then("verify expiration date column does not exist", () => { - OneMacPackagePage.verifyexpirationDateColumnDoesNotExist(); -}); Then("verify status column does not exist", () => { OneMacPackagePage.verifystatusColumnDoesNotExist(); }); @@ -1571,46 +1390,9 @@ Then("type partial existing ID in search bar", () => { Then("verify the state on row one exists", () => { OneMacPackagePage.verifypackageRowOneStateExists(); }); - -Then("verify that the 3 dots next to Approved status is not clickable", () => { - OneMacPackagePage.checkforApprovedIsNotClickable(); -}); -Then( - "verify that the 3 dots next to Disapproved status is not clickable", - () => { - OneMacPackagePage.checkforDisapprovedIsNotClickable(); - } -); -Then("verify that the 3 dots next to Withdrawn status is not clickable", () => { - OneMacPackagePage.checkforWithdrawnIsNotClickable(); -}); -Then( - "verify that the 3 dots next to Terminated status is not clickable", - () => { - OneMacPackagePage.checkforTerminatedIsNotClickable(); - } -); -Then( - "verify that the 3 dots next to Unsubmitted status is not clickable", - () => { - OneMacPackagePage.checkforUnsubmittedIsNotClickable(); - } -); -Then("verify expiration date filter dropdown exists", () => { - OneMacPackagePage.verifyExpirationDateFilterDropDownExists(); -}); Then("verify Initial Submission Date filter dropdown exists", () => { OneMacPackagePage.verifyInitialSubmissionDateFilterDropDownExists(); }); -Then("click on expiration date filter dropdown", () => { - OneMacPackagePage.clickOnExpirationDateFilterDropDown(); -}); -Then("verify expiration date date picker exists", () => { - OneMacPackagePage.verifyExpirationDateDatePickerFilterExists(); -}); -Then("click on expiration date date picker filter", () => { - OneMacPackagePage.clickOnExpirationDateDatePickerFilter(); -}); Then("click on Initial Submission Date filter dropdown", () => { OneMacPackagePage.clickOnInitialSubmissionDateFilterDropDown(); }); @@ -1620,15 +1402,6 @@ Then("verify Initial Submission Date date picker filter exists", () => { Then("click on Initial Submission Date date picker filter", () => { OneMacPackagePage.clickOnInitialSubmissionDateDatePickerFilter(); }); -Then("click on Formal RAI Received filter dropdown", () => { - OneMacPackagePage.clickOnInitialSubmissionDateFilterDropDown(); -}); -Then("verify Formal RAI Received date picker filter exists", () => { - OneMacPackagePage.verifyFormalRAIReceivedDatePickerFilterExists(); -}); -Then("verify Formal RAI Received date picker filter does not exist", () => { - OneMacPackagePage.verifyFormalRAIReceivedDatePickerFilterDoesNotExist(); -}); Then("click on Formal RAI Received date picker filter", () => { OneMacPackagePage.clickOnFormalRAIReceivedDatePickerFilter(); }); @@ -1638,38 +1411,17 @@ Then("click on this quarter date picker button", () => { Then("click on quarter to date date picker button", () => { OneMacPackagePage.clickOnQuarterToDateDatePickerBtn(); }); -Then("click on OK date picker button", () => { - OneMacPackagePage.clickOnOkDatePickerBtn(); -}); -Then("click on today date picker button", () => { - OneMacPackagePage.clickOntodayPickerBtn(); -}); Then("click on reset button", () => { OneMacPackagePage.clickOnResetButton(); }); Then("verify package row one exists", () => { OneMacPackagePage.verifyPackageRowOneExists(); }); -Then("verify 90th day column one is not na", () => { - if (OneMacPackagePage.checkIfPackageListResultsExist()) { - OneMacPackagePage.verify90thDayRowOneIsNotNA(); - } -}); -Then("verify 90th day column one is not Pending", () => { - if (OneMacPackagePage.checkIfPackageListResultsExist()) { - OneMacPackagePage.verify90thDayRowOneIsNotPending(); - } -}); Then("verify Initial Submission Date column one date is this quarter", () => { if (OneMacPackagePage.checkIfPackageListResultsExist()) { OneMacPackagePage.verifypackageRowOneInitialSubmissionDateIsThisQuarter(); } }); -Then("verify Formal RAI Received column one date is this quarter", () => { - if (OneMacPackagePage.checkIfPackageListResultsExist()) { - OneMacPackagePage.verifypackageRowOneInitialSubmissionDateIsThisQuarter(); - } -}); Then("verify states selected includes {string}", (state) => { OneMacPackagePage.verifyStatesSelectedIncludes(state); }); @@ -1688,9 +1440,6 @@ Then("click on Formal RAI Received dropdown filter", () => { Then("verify state filter select exists", () => { OneMacPackagePage.verifyStateFilterSelectExists(); }); -Then("click on state filter select", () => { - OneMacPackagePage.clickStateFilterSelect(); -}); Then("verify no states are selected", () => { OneMacPackagePage.verifyStateFilterSelectIsEmpty(); }); @@ -1715,9 +1464,6 @@ Then("click on the Waivers tab", () => { Then("verify the SPAs tab exists", () => { OneMacPackagePage.verifySPAsTabExists(); }); -Then("click on SPAs tab", () => { - OneMacPackagePage.clickOnSPAsTab(); -}); Then("verify SPA ID column exists", () => { OneMacPackagePage.verifySPAIDColumnExists(); }); @@ -1731,10 +1477,6 @@ Then("verify the SPAs tab is selected", () => { //if it's disabled then it is selected. OneMacPackagePage.verifySPAsTabIsDisabled(); }); -Then("verify the SPAs tab is clickable", () => { - //if it's disabled then it is selected. - OneMacPackagePage.verifySPAsTabIsClickable(); -}); Then("verify the Waivers tab is selected", () => { //if it's disabled then it is selected. OneMacPackagePage.verifyWaiversTabIsDisabled(); @@ -1745,10 +1487,6 @@ Then("verify the Waivers tab is clickable", () => { Then("refresh the page", () => { cy.reload(); }); - -Then("verify that Clock Stopped checkbox exists", () => { - OneMacPackagePage.verifyNinetiethDayClockStoppedCheckboxExists(); -}); Then("check all of the status checkboxes", () => { OneMacPackagePage.checkAllStatusFilterCheckboxes(); }); @@ -1782,18 +1520,9 @@ Then("click the Pending - Approval checkbox", () => { Then("verify the Pending - Approval status checkbox exists", () => { OneMacPackagePage.verifyPendingApprovalCheckboxExists(); }); -Then( - "verify that the value of the column for the 90th day is Clock Stopped", - () => { - OneMacPackagePage.verify90thDayRowOneIsClockStopped(); - } -); Then("click Approved checkbox", () => { OneMacPackagePage.clickApprovedCheckbox(); }); -Then("verify that the value of the column for the 90th day is NA", () => { - OneMacPackagePage.verify90thDayRowOneIsNA(); -}); Then("click Disapproved checkbox", () => { OneMacPackagePage.clickDisapprovedCheckbox(); }); @@ -1806,9 +1535,6 @@ Then("click the Waiver Number link in the first row", () => { Then("click the Package Withdrawn checkbox", () => { OneMacPackagePage.clickWithdrawnCheckBoxExists(); }); -Then("verify that the value of the column for the 90th day is Pending", () => { - OneMacPackagePage.verify90thDayRowOneIsPending(); -}); Then("click Unsubmitted checkbox", () => { OneMacPackagePage.clickUnsubmittedCheckbox(); }); @@ -1827,9 +1553,6 @@ Then("click Requested checkbox", () => { Then("click the Pending checkbox", () => { OneMacPackagePage.clickPendingCheckbox(); }); -Then("verify the type in row one is some kind of 1915 Waiver", () => { - OneMacPackagePage.verifypackageRowOneTypeContains1915Waiver(); -}); Then("verify the type in row one is Initial Waiver", () => { OneMacPackagePage.verifypackageRowOneTypeHasTextInitialWaiver(); }); @@ -1869,9 +1592,6 @@ Then("verify OneMAC IDM Guide link exists", () => { Then("verify OneMAC State User Guide link exists", () => { OneMacFAQPage.verifyStateSubmitterGuideLinkExists(); }); -Then("verify OneMAC State Administrator Guide link exists", () => { - OneMacFAQPage.verifyStateAdminGuideLinkExists(); -}); Then("verify OneMAC CMS User Guide link exists", () => { OneMacFAQPage.verifyCmsUserGuideLinkExists(); }); @@ -1884,25 +1604,9 @@ Then("verify OneMAC IDM Guide is valid", () => { Then("verify OneMAC State User Guide is valid", () => { OneMacFAQPage.verifyStateSubmitterGuideLinkIsValid(); }); -Then("verify OneMAC State Administrator Guide is valid", () => { - OneMacFAQPage.verifyStateAdminGuideLinkIsValid(); -}); Then("verify OneMAC CMS User Guide is valid", () => { OneMacFAQPage.verifyCmsUserGuideLinkIsValid(); }); -Then("click on Respond to Medicaid SPA RAI", () => { - OneMacSubmissionTypePage.clickRespondToMedicaidSPARAI(); -}); -Then("click on Respond to CHIP SPA RAI", () => { - OneMacSubmissionTypePage.clickRespondToCHIPSPARAI(); -}); -Then("click on Respond to Waiver RAI", () => { - OneMacSubmissionTypePage.clickRespondToWaiverRAI(); -}); -Then("verify ID field is empty and not disabled", () => { - medicaidSPARAIResponsePage.verifySPAIDFieldIsEmptyThenNotDisabled(); -}); - Then("search for {string}", (part) => { OneMacPackagePage.searchFor(part); cy.wait(1000); @@ -1960,11 +1664,9 @@ Then("verify the submit button is enabled", () => { Then("verify there is no error message", () => { OneMacRequestARoleChangePage.verifyErrorMsgDoesNotExist(); }); - Then("click on cancel", () => { OneMacRequestARoleChangePage.clickCancelBtn(); }); - Then("verify the cancel button is clickable", () => { OneMacRequestARoleChangePage.verifyCancelBtnIsEnabled(); }); @@ -2013,12 +1715,6 @@ Then( OneMacPackagePage.verifyWithdrawPackageBtnExists(); } ); -Then( - "verify withdraw package button is not visible for package in package dashboard", - () => { - OneMacPackagePage.verifyWithdrawPackageBtnDoesNotExist(); - } -); Then("click withdraw package button", () => { OneMacPackagePage.clickWithdrawPackageBtn(); }); @@ -2100,12 +1796,7 @@ Then("verify the details section exists", () => { Then("verify the package details title contains {string}", (string) => { OneMacPackageDetailsPage.verifyTitleContains(string); }); -Then("verify there is a SPA ID header in the details section", () => { - OneMacPackageDetailsPage.verifyCHIPSPAIDHeaderExists(); -}); -Then("verify an ID exists for the SPA ID", () => { - OneMacPackageDetailsPage.verifyIDExists(); -}); + Then("verify there is a Type header in the details section", () => { OneMacPackageDetailsPage.verifyTypeHeaderExists(); }); @@ -2115,9 +1806,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 +1867,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 +1915,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(); }); @@ -2326,27 +1927,12 @@ Then("click the Request Temporary Extension button", () => { Then("verify the Request Temporary Extension button is displayed", () => { OneMacPackagePage.verifyRequestTempExtensionBtnExists(); }); -Then("click the Add Amendment button", () => { - OneMacPackagePage.clickAddAmendmentBtn(); -}); Then("verify the Add Amendment button is displayed", () => { OneMacPackagePage.verifyAddAmendmentBtnExists(); }); 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(); }); @@ -2365,12 +1951,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", () => { @@ -2389,12 +1969,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", () => { @@ -2407,51 +1981,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(); }); @@ -2461,30 +2002,15 @@ Then("verify the waiver authority is 1915c HCBS", () => { Then("verify the attachments section exists", () => { OneMacPackageDetailsPage.verifyAttachmentsSectionExists(); }); -Then("verify the download all button exists", () => { - OneMacPackageDetailsPage.verifyDownloadAllBtnExists(); -}); Then("verify the additional information section exists", () => { OneMacPackageDetailsPage.verifyAdditionalInfoSectionExists(); }); 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(); }); @@ -2547,13 +2073,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(); }); @@ -2563,27 +2082,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(); }); @@ -2622,13 +2120,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(); }); @@ -2737,76 +2228,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) => { @@ -2873,13 +2303,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", () => { @@ -2966,28 +2389,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.", () => { @@ -3093,51 +2503,18 @@ Then( Then("verify Review Team SRT is not visible in the details section", () => { OneMacPackageDetailsPage.verifyReviewTeamSRTDoesNotExists(); }); -Then("verify the Formal RAI Response caret button exists", () => { - OneMacPackageDetailsPage.verifyFormalRAIResponseCaretBtnExists(); -}); -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("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(); -}); -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..95e6b4520 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,18 @@ 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,53 +60,33 @@ 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"); } - verifySubmissionListIsDisplayed() { - cy.xpath(submissionList).should("be.visible"); - } + verifyexportToEXcelCSVBTNIsDisplayed() { cy.get(exportToEXcelCSVBTN).should("be.visible"); } - - verifyidNumberHeaderIsDisplayed() { - cy.get(idNumberHeader).should("be.visible"); - } - verifytypeHeaderIsDisplayed() { - cy.get(typeHeader).should("be.visible"); - } verifyStateHeaderIsDisplayed() { cy.get(stateHeader).should("be.visible"); } - verifyInitialSubmissionDateHeaderIsDisplayed() { - cy.get(initialSubmissionDateHeader).should("be.visible"); - } - verifySubmittedByHeadersDisplayed() { - cy.get(submittedByHeader).should("be.visible"); - } + verifyNewSubmissionBTNIsDisplayed() { cy.get(newSubmissionBTN).should("be.visible"); } - verifyIDNumberIsDisplayed(s) { cy.xpath(IDNUMBER(s)).should("be.visible"); } @@ -127,15 +96,6 @@ export class oneMacDashboardPage { navigatetoURL(s) { cy.visit(s); } - - clickOnSpaID() { - cy.get(spaIDLink).click(); - cy.wait(5000); - } - - verifyAttachmentExists(s) { - cy.get(uploadedAttachments).contains(s); - } verifyLogoutBtnExists() { cy.xpath(logoutBtn).should("be.visible"); } @@ -145,9 +105,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/oneMacDefaultForms.js b/tests/cypress/support/pages/oneMacDefaultForms.js index 6c37942e1..f07a02d87 100644 --- a/tests/cypress/support/pages/oneMacDefaultForms.js +++ b/tests/cypress/support/pages/oneMacDefaultForms.js @@ -14,9 +14,6 @@ export class oneMacDefaultForms { clicksubmitBTNWithoutWait() { cy.get(submitBTN).click(); } - verifySubmitBtnExists() { - cy.get(submitBTN).scrollIntoView().should("be.visible"); - } verifySubmitBtnIsNotDisabled() { cy.get(submitBTN).should("not.be.disabled"); } diff --git a/tests/cypress/support/pages/oneMacFAQPage.js b/tests/cypress/support/pages/oneMacFAQPage.js index 99aa0252c..20af76b0b 100644 --- a/tests/cypress/support/pages/oneMacFAQPage.js +++ b/tests/cypress/support/pages/oneMacFAQPage.js @@ -1,6 +1,6 @@ //Element is Xpath use cy.xpath instead of cy.get: All of the following are xpath //overall headers and help desk section -const frequentlyAskedQuestionHeader = "//*[@id='title_bar']//h1"; +const pageHeader = "//*[@id='title_bar']//h1"; const generalHeader = '//h2[contains(text(),"General")]'; const statePlanAmendmentSPAHeader = '//h2[contains(text(),"State Plan Amendments (SPAs)")]'; @@ -258,7 +258,9 @@ export class oneMacFAQPage { cy.get(canISubmitAppendixKAmendmentsInOneMacValue).should("be.visible"); } VerifyWhataretheattachmentsfora1915cAppendixKWaiverisdisplayedandclickit() { - cy.get(whatAreTheAttachmentsForAppendixKWaiver).click(); + cy.get(whatAreTheAttachmentsForAppendixKWaiver) + .should("be.visible") + .click(); } VerifytextcontainsTheregulationsat42CFR4302543155and42CFR441301describethe() { cy.get(whatAreTheAttachmentsForAppendixKWaiverValue).should("be.visible"); @@ -269,19 +271,14 @@ export class oneMacFAQPage { verifyActualphoneNumberExists() { cy.xpath(actualPhoneNumber).should("be.visible"); } - verifyemailExists() { + verifyEmailExists() { cy.xpath(email).should("be.visible"); } - verifyActualemailExists() { + verifyActualEmailExists() { cy.xpath(actualEmail).should("be.visible"); } - VerifypagetitleisFAQ() { - cy.url().should("include", "/FAQ"); - } - VerifyFrequentlyAskedQuestionsExists() { - cy.xpath(frequentlyAskedQuestionHeader) - .should("be.visible") - .contains("Frequently Asked Questions"); + VerifyPageTitleIs(s) { + cy.xpath(pageHeader).should("be.visible").contains(s); } verifyOnboardingMaterialsBtnExists() { cy.get(onboardingMaterialsBtn).should("be.visible"); @@ -301,9 +298,6 @@ export class oneMacFAQPage { verifyStateSubmitterGuideLinkExists() { cy.xpath(stateSubmitterGuideLink).should("be.visible"); } - verifyStateAdminGuideLinkExists() { - cy.xpath(stateAdminGuideLink).should("be.visible"); - } verifyCmsUserGuideLinkExists() { cy.xpath(cmsUserGuideLink).should("be.visible"); } @@ -335,13 +329,6 @@ export class oneMacFAQPage { cy.request(href).its("status").should("eq", 200); }); } - verifyStateAdminGuideLinkIsValid() { - cy.xpath(stateAdminGuideLink) - .invoke("attr", "href") - .then((href) => { - cy.request(href).its("status").should("eq", 200); - }); - } verifyCmsUserGuideLinkIsValid() { cy.xpath(cmsUserGuideLink) .invoke("attr", "href") diff --git a/tests/cypress/support/pages/oneMacMyProfilePage.js b/tests/cypress/support/pages/oneMacMyProfilePage.js index 590cc91e3..968ebc380 100644 --- a/tests/cypress/support/pages/oneMacMyProfilePage.js +++ b/tests/cypress/support/pages/oneMacMyProfilePage.js @@ -55,13 +55,5 @@ export class oneMacMyProfilePage { verifyAccessStatus() { cy.xpath(accessStatus).should("be.visible"); } - - verifyAccessStatusDenied() { - cy.xpath(accessStatusDenied).should("be.visible"); - } - - verifyAccessStatusRevoked() { - cy.xpath(accessStatusRevoked).should("be.visible"); - } } export default oneMacMyProfilePage; diff --git a/tests/cypress/support/pages/oneMacPackageDetailsPage.js b/tests/cypress/support/pages/oneMacPackageDetailsPage.js index 9ea67c2da..63f04e381 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']"; @@ -54,34 +45,19 @@ 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 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')]"; 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() { @@ -158,12 +134,6 @@ export class oneMacPackageDetailsPage { verifyTitleContains(s) { cy.get("h2").first().contains(s); } - verifyCHIPSPAIDHeaderExists() { - cy.xpath(CHIPSPAIDHeader).should("be.visible"); - } - verifyIDExists() { - cy.xpath(CHIPSPAIDHeader).next().should("be.visible"); - } verifyTypeHeaderExists() { cy.xpath(typeHeader).should("be.visible"); } @@ -188,9 +158,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 +197,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 +209,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 +223,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); } @@ -356,7 +249,6 @@ export class oneMacPackageDetailsPage { verifyAmendmentTitleIs(s) { cy.xpath(amendmentTitleHeader).next().contains(s); } - verifyWaiverAuthorityHeaderExists() { cy.xpath(waiverAuthorityHeader).should("be.visible"); } @@ -366,12 +258,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"); } @@ -381,37 +267,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"); } @@ -456,38 +311,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(); - } - }); - } - 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 +327,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 +346,5 @@ 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/oneMacPackagePage.js b/tests/cypress/support/pages/oneMacPackagePage.js index 5363273f7..57f8215de 100644 --- a/tests/cypress/support/pages/oneMacPackagePage.js +++ b/tests/cypress/support/pages/oneMacPackagePage.js @@ -43,12 +43,7 @@ const typeFilterCheckboxes = "#componentType input"; //Element is Xpath use cy.xpath instead of cy.get const formalRAIReceivedCheckbox = "//label[contains(@for,'checkbox_columnPicker-Formal RAI')]"; -const ninetiethDayDatePickerFilter = - '*[role=combobox][aria-owns^="ninetiethDay-date-filter"]'; -//Element is Xpath use cy.xpath instead of cy.get -const expirationDateFilterDropdown = "//button[text()='Expiration Date']"; -const expirationDateDatePickerFilter = - '*[role=combobox][aria-owns^="expirationTimestamp-date-filter"]'; + //Element is Xpath use cy.xpath instead of cy.get const initialSubmissionDateFilterDropdown = "//button[text()='Initial Submission']"; @@ -64,10 +59,6 @@ const thisQuarterDatePickerBtn = "//button[contains(text(),'This Quarter')]"; const quarterToDateDatePickerBtn = "//button[contains(text(),'Quarter To Date')]"; //Element is Xpath use cy.xpath instead of cy.get -const okDatePickerBtn = "//button[text()='OK']"; -//Element is Xpath use cy.xpath instead of cy.get -const todayPickerBtn = "//button[text()='Today']"; -//Element is Xpath use cy.xpath instead of cy.get const statusDropDownFilter = "//button[text()='Status']"; const packageRowOneInitialSubmissionDate = "#submissionTimestamp-0"; const packageRowOneFormalRAIReceived = "#latestRaiResponseTimestamp-0"; @@ -122,8 +113,6 @@ const checkBox90thDay = "//span[contains(text(),'90th Day')]"; const checkBoxInitialSubmissionDate = "//span[contains(text(),'Initial Submission')]"; //Element is Xpath use cy.xpath instead of cy.get -const checkBoxexpirationDate = "//span[contains(text(),'Expiration Date')]"; -//Element is Xpath use cy.xpath instead of cy.get const checkboxState = "//span[text()='State']"; //Element is Xpath use cy.xpath instead of cy.get const checkBoxStatus = "//span[contains(text(),'Status')]"; @@ -135,7 +124,6 @@ const checkboxCPOCName = "//span[contains(text(),'CPOC Name')]"; const IDNumberColumn = "#componentIdColHeader"; const typeColumn = "#componentTypeColHeader"; const stateColumn = "#territoryColHeader"; -const expirationDateColumn = "#expirationTimestampColHeader"; const statusColumn = "#packageStatusColHeader"; const initialSubmissionDateColumn = "#submissionTimestampColHeader"; const submittedByColumn = "#submitterColHeader"; @@ -209,7 +197,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']"; @@ -252,13 +239,6 @@ export class oneMacPackagePage { cy.xpath(expirationDateColumnHeader).should("be.visible"); } - verifyMD32560ExpirationDateIsSetTooct142026() { - cy.xpath(MD32560hrefValue); - } - verifyExpirationDateFirstValue(s) { - cy.xpath(firstExperationDate).contains(s); - } - typePendingInSearchBar() { cy.get(searchbar).type("pending"); } @@ -328,20 +308,6 @@ export class oneMacPackagePage { verifytypeDropDownFilterExists() { cy.xpath(typeDropDownFilter).should("be.visible"); } - verify90thDayFilterDropDownExists() { - cy.xpath(ninetiethDayFilterDropdown).should("be.visible"); - } - clickOn90thDayFilterDropDown() { - cy.xpath(ninetiethDayFilterDropdown).wait(1000); - cy.xpath(ninetiethDayFilterDropdown).click(); - } - verifyExpirationDateFilterDropDownExists() { - cy.xpath(expirationDateFilterDropdown).should("be.visible"); - } - clickOnExpirationDateFilterDropDown() { - cy.xpath(expirationDateFilterDropdown).wait(1000); - cy.xpath(expirationDateFilterDropdown).click(); - } verifyInitialSubmissionDateFilterDropDownExists() { cy.xpath(initialSubmissionDateFilterDropdown).should("be.visible"); } @@ -368,35 +334,15 @@ export class oneMacPackagePage { clickOnNinetiethDayPendingCheckbox() { cy.xpath(ninetiethDayPendingCheckbox).click(); } - verifyNinetiethDayClockStoppedCheckboxExists() { - cy.xpath(ninetiethDayClockStoppedCheckbox).should("exist"); - } clickOnNinetiethDayClockStoppedCheckbox() { cy.xpath(ninetiethDayClockStoppedCheckbox).click(); } verifyFormalRAIReceivedCheckboxExists() { cy.xpath(formalRAIReceivedCheckbox).should("exist"); } - verifyFormalRAIReceivedCheckboxDoesNotExist() { - cy.xpath(formalRAIReceivedCheckbox).should("not.exist"); - } clickFormalRAIReceivedCheckbox() { cy.xpath(formalRAIReceivedCheckbox).click(); } - verifyNinetiethDayDatePickerFilterExists() { - cy.get(ninetiethDayDatePickerFilter).should("exist"); - } - clickOnNinetiethDayDatePickerFilter() { - cy.get(ninetiethDayDatePickerFilter).wait(1000); - cy.get(ninetiethDayDatePickerFilter).click(); - } - verifyExpirationDateDatePickerFilterExists() { - cy.get(expirationDateDatePickerFilter).should("exist"); - } - clickOnExpirationDateDatePickerFilter() { - cy.get(expirationDateDatePickerFilter).wait(1000); - cy.get(expirationDateDatePickerFilter).click(); - } verifyInitialSubmissionDateDatePickerFilterExists() { cy.get(initialSubmissionDateDatePickerFilter).last().should("exist"); } @@ -404,12 +350,6 @@ export class oneMacPackagePage { cy.get(initialSubmissionDateDatePickerFilter).wait(1000); cy.get(initialSubmissionDateDatePickerFilter).last().click(); } - verifyFormalRAIReceivedDatePickerFilterExists() { - cy.get(formalRAIReceivedDatePickerFilter).last().should("exist"); - } - verifyFormalRAIReceivedDatePickerFilterDoesNotExist() { - cy.get(formalRAIReceivedDatePickerFilter).should("not.exist"); - } clickOnFormalRAIReceivedDatePickerFilter() { cy.get(formalRAIReceivedDatePickerFilter).wait(1000); cy.get(formalRAIReceivedDatePickerFilter).last().click(); @@ -420,21 +360,9 @@ export class oneMacPackagePage { clickOnQuarterToDateDatePickerBtn() { cy.xpath(quarterToDateDatePickerBtn).click(); } - clickOnOkDatePickerBtn() { - cy.xpath(okDatePickerBtn).click(); - } - clickOntodayPickerBtn() { - cy.xpath(todayPickerBtn).click(); - } verifyPackageRowOneExists() { cy.get(packageRowOne).should("be.visible"); } - verify90thDayRowOneIsNotPending() { - cy.get(packageRowOne90thDay).should("not.have.text", "Pending"); - } - verify90thDayRowOneIsNotNA() { - cy.get(packageRowOne90thDay).should("not.have.text", "N/A"); - } verifypackageRowOneInitialSubmissionDateIsThisQuarter() { cy.get(packageRowOneInitialSubmissionDate, { timeout: 15000 }) .invoke("text") @@ -446,17 +374,6 @@ export class oneMacPackagePage { expect(dateQuarter).to.eq(todaysQuarter); }); } - verifypackageRowOneFormalRAIReceivedIsThisQuarter() { - cy.get(packageRowOneFormalRAIReceived, { timeout: 15000 }) - .invoke("text") - .then((dateText) => { - const date = new Date(packageRowOneFormalRAIReceived); - const today = new Date(); - let dateQuarter = Math.floor((date.getMonth() + 3) / 3); - let todaysQuarter = Math.floor((today.getMonth() + 3) / 3); - expect(dateQuarter).to.eq(todaysQuarter); - }); - } verifystatusDropDownFilterExists() { cy.xpath(statusDropDownFilter).should("be.visible"); } @@ -517,9 +434,6 @@ export class oneMacPackagePage { clickRaiResponseWithdrawalRequestedCheckBox() { cy.xpath(raiResponseWithdrawalRequestedCheckBox).click(); } - verifyRaiResponseWithdrawEnabledCheckBoxExists() { - cy.xpath(raiResponseWithdrawEnabledCheckBox).should("be.visible"); - } clickRaiResponseWithdrawEnabledCheckBox() { cy.xpath(raiResponseWithdrawEnabledCheckBox).click(); } @@ -595,12 +509,6 @@ export class oneMacPackagePage { clickCheckBoxInitialSubmissionDate() { cy.xpath(checkBoxInitialSubmissionDate).click(); } - verifycheckBoxexpirationDateBTNExists() { - cy.xpath(checkBoxexpirationDate).should("be.visible"); - } - clickCheckBoxexpirationDate() { - cy.xpath(checkBoxexpirationDate).click(); - } verifycheckboxStateExists() { cy.xpath(checkboxState).should("be.visible"); } @@ -640,9 +548,6 @@ export class oneMacPackagePage { verifystateColumnExists() { cy.get(stateColumn).should("be.visible"); } - verifyexpirationDateColumnExists() { - cy.get(expirationDateColumn).should("be.visible"); - } verifystatusColumnExists() { cy.get(statusColumn).should("be.visible"); } @@ -672,12 +577,6 @@ export class oneMacPackagePage { verifystateColumnDoesNotExist() { cy.get(stateColumn).should("not.exist"); } - verify90thDayColumnDoesNotExist() { - cy.get(stateColumn).should("not.exist"); - } - verifyexpirationDateColumnDoesNotExist() { - cy.get(expirationDateColumn).should("not.exist"); - } verifystatusColumnDoesNotExist() { cy.get(statusColumn).should("not.exist"); } @@ -740,9 +639,6 @@ export class oneMacPackagePage { verifyStateFilterSelectExists() { cy.get(stateFilterSelect).should("be.visible"); } - clickStateFilterSelect() { - cy.get(stateFilterSelect).click(); - } verifyStatesSelectedExists() { cy.get(statesSelected).should("be.visible"); } @@ -777,9 +673,6 @@ export class oneMacPackagePage { verifySPAsTabExists() { cy.get(spasTab).should("be.visible"); } - clickOnSPAsTab() { - cy.get(spasTab).click(); - } verifySPAIDColumnExists() { cy.get(IDNumberColumn).should("be.visible").and("have.text", "SPA ID"); } @@ -791,9 +684,6 @@ export class oneMacPackagePage { verifySPAsTabIsDisabled() { cy.get(spasTab).should("be.disabled"); } - verifySPAsTabIsClickable() { - cy.get(spasTab).should("not.be.disabled"); - } verifyWaiversTabIsDisabled() { cy.get(waiversTab).should("be.disabled"); } @@ -880,15 +770,6 @@ export class oneMacPackagePage { cy.wrap($el).uncheck({ force: true }); }); } - verify90thDayRowOneIsPending() { - cy.get(packageRowOne90thDay).should("have.text", "Pending"); - } - verify90thDayRowOneIsNA() { - cy.get(packageRowOne90thDay).should("have.text", "N/A"); - } - verify90thDayRowOneIsClockStopped() { - cy.get(packageRowOne90thDay).should("have.text", "Clock Stopped"); - } verifypackageRowOneIDInitialWaiverFormat() { cy.get(packageRowOneID).contains(/[A-Z]{2}\.\d{4}||[A-Z]{2}\.\d{5}/); } @@ -897,9 +778,6 @@ export class oneMacPackagePage { /[A-Z]{2}\.\d{5}\.[A-Z]{1}\d{2}||[A-Z]{2}\.\d{4}\.[A-Z]{1}\d{2}/ ); } - verifypackageRowOneTypeContains1915Waiver() { - cy.get(packageRowOneType).should("contain.text", "1915"); - } verifypackageRowOneTypeHasTextInitialWaiver() { cy.get(packageRowOneType).should("contain.text", "Initial Waiver"); } @@ -967,9 +845,6 @@ export class oneMacPackagePage { cy.wrap($el).find("button").first().scrollIntoView().click(); }); } - verifyexpirationDateColumnExistsForChild() { - cy.get(packageRowTwoExpirationDate).should("be.visible"); - } verifyFirstParentRowExpanderIsDisabled() { cy.xpath(parentRowExpander).should("be.disabled"); } @@ -989,9 +864,6 @@ export class oneMacPackagePage { verifyWithdrawPackageBtnExists() { cy.xpath(withdrawPackageBtn).filter(":visible").first().should("exist"); } - verifyWithdrawPackageBtnDoesNotExist() { - cy.xpath(withdrawPackageBtn).should("not.exist"); - } clickConfirmWithdrawPackageBtn() { cy.xpath(withdrawPackageConfirmBtn).click(); } @@ -1008,11 +880,6 @@ export class oneMacPackagePage { verifyChildRowStatusIs(status) { cy.get(packageRowTwoStatus).should("contain.text", status); } - verifyPackageWithdrawalMessageIsDisplayed() { - cy.get(successMessage).contains( - "Your submission package has successfully been withdrawn." - ); - } clickSPAIDLinkInFirstRow() { cy.xpath(packageRowOneIDLink).click(); } @@ -1034,9 +901,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"); } 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..85247b4eb 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,7 +26,6 @@ export class oneMacRespondToRAIPage { verifyModalTextIs(s) { cy.get(modalText).contains(s); } - clickBackArrow() { cy.get(backArrow).click(); } @@ -40,10 +34,6 @@ export class oneMacRespondToRAIPage { cy.xpath(leaveAnywaysBtn).click(); } - clickYesSubmitBTN() { - cy.xpath(yesSubmitBtn).click(); - cy.wait(8000); - } verifyWaiverNumberMatchesID(s) { cy.xpath(prepopulatedWaiverNumber).should("have.text", s); } diff --git a/tests/cypress/support/pages/oneMacSubmissionTypePage.js b/tests/cypress/support/pages/oneMacSubmissionTypePage.js index 924361671..c7798d13e 100644 --- a/tests/cypress/support/pages/oneMacSubmissionTypePage.js +++ b/tests/cypress/support/pages/oneMacSubmissionTypePage.js @@ -22,8 +22,6 @@ const chipEligibility = ':contains("CHIP Eligibility")'; //Element is Xpath use cy.xpath instead of cy.get const allOtherChip = ':contains("All Other CHIP SPA Submissions")'; //Element is Xpath use cy.xpath instead of cy.get -const waiverActionWaiverAction = - '//p[contains(text(),"Submit 1915(b) waivers, amendments, and renewals")]'; const ffsSelectiveAuthority = "//div[contains(text(),'1915(b)(4) FFS Selective Contracting Waivers')]"; const comprehensiveCapitatedWaiverAuthority = @@ -36,10 +34,6 @@ const AppendixKAmendment = '//div[text()="1915(c) Appendix K Amendment"]'; const respondToMedicaidSPARAI = '//div[text()="Respond to Formal Medicaid SPA RAI"]'; //Element is Xpath use cy.xpath instead of cy.get -const respondToCHIPSPARAI = '//div[text()="Respond to Formal CHIP SPA RAI"]'; -//Element is Xpath use cy.xpath instead of cy.get -const respondToWaiverRAI = "//a//div[text()='Respond to Waiver RAI']"; -//Element is Xpath use cy.xpath instead of cy.get const initialWaiver1915b4 = ":contains('1915(b)(4) FFS Selective Contracting New Initial Waiver')"; //Element is Xpath use cy.xpath instead of cy.get @@ -65,12 +59,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,33 +86,21 @@ 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(); } - clickRequestExtensionBtn() { - cy.xpath(RequestExtensionBtn).click(); - } clickAppendixKAmendment() { cy.xpath(AppendixKAmendment).click(); } clickRespondToMedicaidSPARAI() { cy.xpath(respondToMedicaidSPARAI).click(); } - clickRespondToCHIPSPARAI() { - cy.xpath(respondToCHIPSPARAI).click(); - } - clickRespondToWaiverRAI() { - cy.xpath(respondToWaiverRAI).click(); - } clickInitialWaiver() { cy.xpath(cardLink).filter(initialWaiver1915b4).click(); } diff --git a/tests/cypress/support/pages/oneMacSubmitNewMedicaidSPAPage.js b/tests/cypress/support/pages/oneMacSubmitNewMedicaidSPAPage.js index 514be2c04..9221f6df8 100644 --- a/tests/cypress/support/pages/oneMacSubmitNewMedicaidSPAPage.js +++ b/tests/cypress/support/pages/oneMacSubmitNewMedicaidSPAPage.js @@ -52,50 +52,12 @@ export class oneMacSubmitNewMedicaidSPAPage { cy.get(CMSForm179AddFileUpload).attachFile(filePath + fileName); } - verifyFileAddedForForm179(fileName) { - cy.get(uploadedFile).contains(fileName); - } - - verifyFileNotAddedForForm179(fileName) { - cy.get(uploadedFile).should("not.exist"); - } - - deleteFileFromForm179() { - cy.xpath(deleteForm179File).click(); - cy.get(uploadedFile).should("not.exist"); - } - uploadSPAPagesAddFile() { cy.xpath(SPAPagesAddFileBTN).click(); const filePath = "/files/adobe.pdf"; cy.get(SPAPAgesAddFileUpload).attachFile(filePath); } - addFilesToSpaPages(fileName) { - cy.xpath(SPAPagesAddFileBTN).click(); - const filePath = "/files/"; - cy.get(SPAPAgesAddFileUpload).attachFile(filePath + fileName); - } - - verifyFileAddedForSpaPages(fileName) { - cy.get(SPAPAgesAddFileUpload).contains(fileName); - } - - verifyFileNameExistsInSpaPages(fileName) { - cy.get(SPAPagesMainElement).contains(fileName); - } - - addNoFilesToSpaPages() { - cy.xpath(SPAPagesAddFileBTN).click(); - } - - verifyNoFilesAttachedToSpaPages() { - cy.get(SPAPagesMainElement).should("not.exist"); - } - - AdditionalInformationTypeComment(s) { - cy.xpath(additionalInformationCommentBox).type(s); - } additionalInfoTypeComment(s) { cy.xpath(additionalInfoCommentBox).type(s); } @@ -105,17 +67,6 @@ export class oneMacSubmitNewMedicaidSPAPage { clickLeaveAnywayBtn() { cy.xpath(leaveAnywayBtn).click(); } - verifySubmissionWarningTextIsVisible() { - cy.xpath(warningText).scrollIntoView().should("be.visible"); - } - verifySubmissionWarningText() { - cy.xpath(warningText) - .scrollIntoView() - .contains("Once you submit this form"); - cy.xpath(warningText) - .scrollIntoView() - .contains("you will lose your progress on this form."); - } verifySPAIDErrorMessageIsNotDisplayed() { cy.get(SPAIDErrorMessage).should("not.exist"); } @@ -124,10 +75,6 @@ export class oneMacSubmitNewMedicaidSPAPage { cy.get(SpaIDInput).clear(); } - clickOnDashboardTab() { - cy.get(dashboardTabBTN).click(); - } - typeIncorrectSPAIDAndFormat() { cy.get(SpaIDInput).type("MD-DD-DDDD"); } diff --git a/tests/cypress/support/pages/oneMacSubmitNewWaiverActionPage.js b/tests/cypress/support/pages/oneMacSubmitNewWaiverActionPage.js index 157d71d22..2ed8ee0e9 100644 --- a/tests/cypress/support/pages/oneMacSubmitNewWaiverActionPage.js +++ b/tests/cypress/support/pages/oneMacSubmitNewWaiverActionPage.js @@ -15,7 +15,10 @@ const fileUpload2 = "#uploader-input-1"; const commentsInputBox = "#field_2"; const additionalInfoTextarea = "#additional-information"; const existingWaiverNumber = "MD-22005.R00.00"; -const whatIsMyWaiverIDLink = "//a[@href='/FAQ#waiver-id-format']"; +const whatIsMyInitialWaiverNumberLink = + "//a[@href='/FAQ#initial-waiver-id-format']"; +const whatIsMyWaiverRenewalNumberLink = + "//a[@href='/FAQ#waiver-renewal-id-format']"; const proposedEffectiveDate = "#proposed-effective-date"; const parentIDInputBox = "#parent-componentId"; const parentErrMsgForWaiverNumber = "#parent-componentIdStatusMsg0"; @@ -58,18 +61,6 @@ export class oneMacSubmitNewWaiverActionPage { cy.get(newWaiverNumberInputBox).type(existingWaiverNumber); } - selectNewWaiverUnderActionType() { - cy.get(actionTypeDropDown).select("new"); - } - - selectWaiverAmendmentUnderActionType() { - cy.get(actionTypeDropDown).select("amendment"); - } - - selectRequestForWaiverRenewalUnderActionType() { - cy.get(actionTypeDropDown).select("renewal"); - } - verify1915b4FFSSelectiveContractingwaiversUnderWaiverAuthority() { cy.xpath(waiverAuthority) .next("div") @@ -134,16 +125,19 @@ export class oneMacSubmitNewWaiverActionPage { ); } - inputComments(s) { - cy.get(commentsInputBox).type(s); - } - inputAdditionalInfoText(s) { cy.get(additionalInfoTextarea).type(s); } - clickWhatIsMyWaiverIdLink() { - cy.xpath(whatIsMyWaiverIDLink) + clickWhatIsMyInitialWaiverNumberLink() { + cy.xpath(whatIsMyInitialWaiverNumberLink) + .invoke("attr", "href") + .then((href) => { + cy.visit(href); + }); + } + clickWhatIsMyWaiverRenewalNumberLink() { + cy.xpath(whatIsMyWaiverRenewalNumberLink) .invoke("attr", "href") .then((href) => { cy.visit(href);