Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Oy2 25583 - remove duplicate tests from lines 43-1075 #1378

Merged
merged 2 commits into from
Oct 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
141 changes: 0 additions & 141 deletions tests/cypress/cypress/e2e/common/steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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();
});
Expand All @@ -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();
Expand Down Expand Up @@ -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();
});
Expand Down Expand Up @@ -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();
});
Expand Down Expand Up @@ -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();
});
Expand Down Expand Up @@ -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();
});
Expand Down Expand Up @@ -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",
Expand All @@ -559,10 +453,6 @@ 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();
});
Expand All @@ -577,9 +467,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();
});
Expand Down Expand Up @@ -698,9 +585,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);
});
Expand All @@ -712,14 +596,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();
});
Expand Down Expand Up @@ -816,9 +692,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();
Expand All @@ -844,12 +717,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();
});
Expand Down Expand Up @@ -879,14 +746,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();
});
Expand Down
31 changes: 2 additions & 29 deletions tests/cypress/support/pages/oneMacDashboardPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,6 @@ export class oneMacDashboardPage {
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");
}
Expand Down Expand Up @@ -92,28 +86,15 @@ export class oneMacDashboardPage {
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");
}
Expand All @@ -128,14 +109,6 @@ export class oneMacDashboardPage {
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");
}
Expand Down
3 changes: 0 additions & 3 deletions tests/cypress/support/pages/oneMacDefaultForms.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down
8 changes: 0 additions & 8 deletions tests/cypress/support/pages/oneMacMyProfilePage.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
12 changes: 0 additions & 12 deletions tests/cypress/support/pages/oneMacPackagePage.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,13 +252,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");
}
Expand Down Expand Up @@ -1008,11 +1001,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();
}
Expand Down
4 changes: 0 additions & 4 deletions tests/cypress/support/pages/oneMacRespondToRAIPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,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);
}
Expand Down
3 changes: 0 additions & 3 deletions tests/cypress/support/pages/oneMacSubmissionTypePage.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,6 @@ export class oneMacSubmissionTypePage {
clickRequestTemporaryExtension() {
cy.xpath(RequestTemporaryExtension).click();
}
clickRequestExtensionBtn() {
cy.xpath(RequestExtensionBtn).click();
}
clickAppendixKAmendment() {
cy.xpath(AppendixKAmendment).click();
}
Expand Down
Loading
Loading