Skip to content

Commit

Permalink
error fixes
Browse files Browse the repository at this point in the history
and resolving merging weirdness
  • Loading branch information
Valencia2019 committed Oct 6, 2023
1 parent 3f3a496 commit e3ff421
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 18 deletions.
24 changes: 19 additions & 5 deletions tests/cypress/cypress/e2e/FAQ_Page.spec.feature
Original file line number Diff line number Diff line change
Expand Up @@ -88,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
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 Waiver Action under Waiver Type
Then Click on What is my Waiver ID Link
Then Verify text contains "Waiver number must follow the format"
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
Expand Down
16 changes: 9 additions & 7 deletions tests/cypress/cypress/e2e/common/steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -449,10 +449,6 @@ Then("Add file for Waiver RAI Response", () => {
medicaidSPARAIResponsePage.uploadRAIResponseAddFile();
});

Then("Click on Waiver Action under Waiver Type", () => {
OneMacSubmissionTypePage.clickWaiverActionUnderWaiverAction();
});

Then("verify error message is not present on New Waiver Page", () => {
OneMacSubmitNewWaiverActionPage.verifyErrorMessageIsNotDisplayed();
});
Expand Down Expand Up @@ -962,14 +958,17 @@ Then("verify Contact Email label Exists", () => {
Then("verify actual Contact Email address Exists", () => {
OneMacFAQPage.verifyActualEmailExists();
});
Then("Verify page title is {string}", () => {
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", () => {
Expand Down Expand Up @@ -1441,6 +1440,9 @@ Then("click on Formal RAI Received dropdown filter", () => {
Then("verify state filter select exists", () => {
OneMacPackagePage.verifyStateFilterSelectExists();
});
Then("verify no states are selected", () => {
OneMacPackagePage.verifyStateFilterSelectIsEmpty();
});
Then("set value on state filter select to {string}", (state) => {
OneMacPackagePage.typeStateToSelect(state + "{enter}");
});
Expand Down
2 changes: 1 addition & 1 deletion tests/cypress/support/pages/oneMacFAQPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ export class oneMacFAQPage {
verifyActualEmailExists() {
cy.xpath(actualEmail).should("be.visible");
}
VerifyPageTitleIsFAQ(s) {
VerifyPageTitleIs(s) {
cy.xpath(pageHeader).should("be.visible").contains(s);
}
verifyOnboardingMaterialsBtnExists() {
Expand Down
2 changes: 0 additions & 2 deletions tests/cypress/support/pages/oneMacSubmissionTypePage.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down
16 changes: 13 additions & 3 deletions tests/cypress/support/pages/oneMacSubmitNewWaiverActionPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -126,8 +129,15 @@ export class oneMacSubmitNewWaiverActionPage {
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);
Expand Down

0 comments on commit e3ff421

Please sign in to comment.