Skip to content

Commit

Permalink
removing duplicates and deprecated functions (#1390)
Browse files Browse the repository at this point in the history
and renaming steps that appeared to be duplicates, but were actually different test steps.

Co-authored-by: bflynn-cms <[email protected]>
  • Loading branch information
Valencia2019 and bflynn-cms authored Oct 12, 2023
1 parent e1430bc commit 26961b7
Show file tree
Hide file tree
Showing 10 changed files with 56 additions and 161 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,20 @@ Feature: Package Dashboard - SPA Tab Column Picker for CMS User
Then verify show hide columns button exists
Then verify SPA ID column exists
Then verify type column exists
Then verify state column exists
Then Verify State Column Exists
Then verify status column exists
Then verify Initial Submission Date column exists
Then verify Formal RAI Received column exists
Then verify submitted by column does not exist
Then verify CPOC Name column does not exist
Then click show hide columns button
Then verify Formal RAI Received checkbox exists
Then verify Initial Submission Date exists
Then verify state exists
Then verify status exists
Then verify submitted by exists
Then verify type exists
Then verify CPOC Name exists
Then verify Initial Submission Date checkbox exists
Then verify state checkbox exists
Then verify status checkbox exists
Then verify submitted by checkbox exists
Then verify type checkbox exists
Then verify CPOC Name checkbox exists
Then click show hide columns button

Scenario: SPAs Tab - Uncheck all and verify SPA ID exists
Expand All @@ -45,15 +45,15 @@ Feature: Package Dashboard - SPA Tab Column Picker for CMS User
Then click the logout button

Scenario: Verify state exists, click state from drop down, verify it no longer exists, click it again, verify it exists again.
Then verify state column exists
Then Verify State Column Exists
Then click show hide columns button
Then click state checkbox
Then click show hide columns button
Then verify state column does not exist
Then click show hide columns button
Then click state checkbox
Then click show hide columns button
Then verify state column exists
Then Verify State Column Exists
Then Click on My Account
Then click the logout button

Expand Down Expand Up @@ -89,11 +89,11 @@ Feature: Package Dashboard - SPA Tab Column Picker for CMS User
Then click the logout button

Scenario: Search with no results and verify error message is correct, verify columns are existing per selection on filter
Then type in search bar expiration status “pending
Then search for "pending"
Then verify Error message displayed should be No Results Found
Then verify IDNumber column exists
Then verify type column exists
Then verify state column exists
Then Verify State Column Exists
Then verify Formal RAI Received column exists
Then verify status column exists
Then verify Initial Submission Date column exists
Expand All @@ -107,9 +107,8 @@ Feature: Package Dashboard - SPA Tab Column Picker for CMS User
Then click status checkbox
Then click Formal RAI Received checkbox
Then click show hide columns button
#Then type partial existing ID in search bar
Then verify type column exists
Then verify state column exists
Then Verify State Column Exists
Then verify the type on row one exists
Then verify the state on row one exists
Then click show hide columns button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ Feature: Package Dashboard - SPA Tab Column Picker
Then verify Formal RAI Received column exists
Then click show hide columns button
Then verify Formal RAI Received checkbox exists
Then verify Initial Submission Date exists
Then verify state exists
Then verify status exists
Then verify submitted by exists
Then verify type exists
Then verify Initial Submission Date checkbox exists
Then verify state checkbox exists
Then verify status checkbox exists
Then verify submitted by checkbox exists
Then verify type checkbox exists
Then verify Formal RAI Received checkbox exists
Then verify CPOC Name exists
Then verify CPOC Name checkbox exists
Then click show hide columns button

Scenario: SPAs Tab - Uncheck all and verify SPA ID and actions exists
Expand Down Expand Up @@ -52,7 +52,7 @@ Feature: Package Dashboard - SPA Tab Column Picker
Then click show hide columns button
Then click state checkbox
Then click show hide columns button
Then verify state column exists
Then Verify State Column Exists
Then click show hide columns button
Then click state checkbox
Then click show hide columns button
Expand Down Expand Up @@ -91,7 +91,7 @@ Feature: Package Dashboard - SPA Tab Column Picker
Then click the logout button

Scenario: Search with no results and verify error message is correct, verify columns are existing per selection on filter
Then type in search bar expiration status “pending
Then search for "pending"
Then verify Error message displayed should be No Results Found
Then verify IDNumber column exists
Then verify type column exists
Expand All @@ -113,7 +113,7 @@ Feature: Package Dashboard - SPA Tab Column Picker
Then click state checkbox
Then click show hide columns button
Then verify type column exists
Then verify state column exists
Then Verify State Column Exists
Then verify the type on row one exists
Then verify the state on row one exists
Then click show hide columns button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Feature: Package Dashboard - Waiver Tab Column Picker for CMS User
Then verify show hide columns button exists
Then verify IDNumber column exists
Then verify type column exists
Then verify state column exists
Then Verify State Column Exists
Then verify Waiver Number column exists
Then verify status column exists
Then verify Initial Submission Date column exists
Expand All @@ -18,12 +18,12 @@ Feature: Package Dashboard - Waiver Tab Column Picker for CMS User
Then verify CPOC Name column does not exist
Then click show hide columns button
Then verify Formal RAI Received checkbox exists
Then verify state exists
Then verify status exists
Then verify Initial Submission Date exists
Then verify submitted by exists
Then verify type exists
Then verify CPOC Name exists
Then verify state checkbox exists
Then verify status checkbox exists
Then verify Initial Submission Date checkbox exists
Then verify submitted by checkbox exists
Then verify type checkbox exists
Then verify CPOC Name checkbox exists
Then click show hide columns button
Then Click on My Account
Then click the logout button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ Feature: Package Dashboard - Waiver Tab Column Picker
Then verify CPOC Name column does not exist
Then click show hide columns button
Then verify Formal RAI Received checkbox exists
Then verify state exists
Then verify status exists
Then verify Initial Submission Date exists
Then verify submitted by exists
Then verify type exists
Then verify CPOC Name exists
Then verify state checkbox exists
Then verify status checkbox exists
Then verify Initial Submission Date checkbox exists
Then verify submitted by checkbox exists
Then verify type checkbox exists
Then verify CPOC Name checkbox exists
Then click show hide columns button
Then Click on My Account
Then click the logout button
Expand Down Expand Up @@ -69,7 +69,7 @@ Feature: Package Dashboard - Waiver Tab Column Picker
Then click show hide columns button
Then click state checkbox
Then click show hide columns button
Then verify state column exists
Then Verify State Column Exists
Then click show hide columns button
Then click state checkbox
Then click show hide columns button
Expand Down
4 changes: 2 additions & 2 deletions tests/cypress/cypress/e2e/Dashboard_Filter.spec.feature
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Feature: Package Dashboard - Filter
Then verify Close Exists
Then verify reset Exists
Then verify state dropdown filter exists
Then verify Type Exists
Then verify type dropdown filter exists
Then verify status DropDown Filter exists
Then verify Initial Submission Date filter dropdown exists
Then click on Initial Submission Date filter dropdown
Expand All @@ -28,7 +28,7 @@ Feature: Package Dashboard - Filter
Then verify Close Exists
Then verify reset Exists
Then verify state dropdown filter exists
Then verify Type Exists
Then verify type dropdown filter exists
Then verify status DropDown Filter exists
Then verify Initial Submission Date filter dropdown exists
Then click on Initial Submission Date filter dropdown
Expand Down
4 changes: 2 additions & 2 deletions tests/cypress/cypress/e2e/Dashboard_Filter_CMS.spec.feature
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Feature: Package Dashboard - Filter
Then verify Close Exists
Then verify reset Exists
Then verify state dropdown filter exists
Then verify Type Exists
Then verify type dropdown filter exists
Then verify status DropDown Filter exists
Then verify Initial Submission Date filter dropdown exists
Then verify Formal RAI Received dropdown filter exists
Expand All @@ -26,7 +26,7 @@ Feature: Package Dashboard - Filter
Then verify Close Exists
Then verify reset Exists
Then verify state dropdown filter exists
Then verify Type Exists
Then verify type dropdown filter exists
Then verify status DropDown Filter exists
Then verify Initial Submission Date filter dropdown exists
Then verify Formal RAI Received dropdown filter exists
Expand Down
12 changes: 6 additions & 6 deletions tests/cypress/cypress/e2e/Dashboard_Search_Bar.spec.feature
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Feature: OY2-11149 Submission Dashboard - Search bar
Given I am on Login Page
When Clicking on Development Login
When Login with state submitter user
Then type in search bar expiration status “pending
Then search for "pending"
Then verify Error message displayed should be No Results Found
Then verify Error message details is displayed

Expand Down Expand Up @@ -48,22 +48,22 @@ Feature: OY2-11149 Submission Dashboard - Search bar
Then verify submission successful message in the alert bar
Then search for Initial Waiver Number 2 with 12 Characters
Then clear search bar
Then type in submitters name
Then search for "Angie Active"
Then verify user exists with id number searched

Scenario: Search existing user with Upper case
Given I am on Login Page
When Clicking on Development Login
When Login with state submitter user
Then search existing user with all upper case
Then search for "ANGIE ACTIVE"
Then verify user exists with id number searched


Scenario: Search existing user with special characters
Given I am on Login Page
When Clicking on Development Login
When Login with state submitter user
Then search existing user with dash
Then search for "-"
Then verify user exists with id number searched

Scenario: Search CPOC
Expand All @@ -72,7 +72,7 @@ Feature: OY2-11149 Submission Dashboard - Search bar
When Login with state submitter user
Then click show hide columns button
Then click CPOC Name checkbox
Then search for CPOC named Chester Tester
Then search for "Chester Tester"
Then verify the CPOC searched for is Chester Tester in the first result

Scenario: Log in with help desk user
Expand All @@ -95,5 +95,5 @@ Feature: OY2-11149 Submission Dashboard - Search bar
When Login with state submitter user
Then verify search bar exists
Then verify Search by Package ID, CPOC Name, or Submitter Name is displayed on top of search bar
Then search existing user with all upper case
Then search for "ANGIE ACTIVE"
Then verify x in search bar exists to clear search and click it
40 changes: 8 additions & 32 deletions tests/cypress/cypress/e2e/common/steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -1123,10 +1123,6 @@ Then(
OneMacHomePage.verifyCMSBullet6Exists();
}
);

Then("type in search bar expiration status “pending”", () => {
OneMacPackagePage.typePendingInSearchBar();
});
Then("verify Error message displayed should be No Results Found", () => {
OneMacPackagePage.noResultsFoundErrorMessage();
});
Expand All @@ -1138,15 +1134,6 @@ Then("verify user exists with id number searched", () => {
Then("clear search bar", () => {
OneMacPackagePage.clearSearchBar();
});
Then("type in submitters name", () => {
OneMacPackagePage.typeSubmittersName();
});
Then("search existing user with all upper case", () => {
OneMacPackagePage.typeSubmittersNameAllUpperCase();
});
Then("search existing user with dash", () => {
OneMacPackagePage.typedashInSearchBar();
});
Then("verify search bar exists", () => {
OneMacPackagePage.verifySearchBarExists();
});
Expand Down Expand Up @@ -1183,7 +1170,7 @@ Then("verify Filter By Exists", () => {
Then("verify Close Exists", () => {
OneMacPackagePage.verifycloseButtonExists();
});
Then("verify Type Exists", () => {
Then("verify type dropdown filter exists", () => {
OneMacPackagePage.verifytypeDropDownExists();
});
Then("verify reset Exists", () => {
Expand Down Expand Up @@ -1288,22 +1275,22 @@ Then("verify show hide columns button exists", () => {
Then("click show hide columns button", () => {
OneMacPackagePage.clickShowHideColumnsBTN();
});
Then("verify Initial Submission Date exists", () => {
Then("verify Initial Submission Date checkbox exists", () => {
OneMacPackagePage.verifycheckBoxInitialSubmissionDateExists();
});
Then("verify state exists", () => {
Then("verify state checkbox exists", () => {
OneMacPackagePage.verifycheckboxStateExists();
});
Then("verify status exists", () => {
Then("verify status checkbox exists", () => {
OneMacPackagePage.verifycheckBoxStatusExists();
});
Then("verify submitted by exists", () => {
Then("verify submitted by checkbox exists", () => {
OneMacPackagePage.verifycheckBoxSubmittedByExists();
});
Then("verify type exists", () => {
Then("verify type checkbox exists", () => {
OneMacPackagePage.verifycheckBoxTypeExists();
});
Then("verify CPOC Name exists", () => {
Then("verify CPOC Name checkbox exists", () => {
OneMacPackagePage.verifycheckBoxCPOCNameExists();
});
Then("verify Formal RAI Received checkbox exists", () => {
Expand Down Expand Up @@ -1367,7 +1354,7 @@ Then("verify type column does not exist", () => {
OneMacPackagePage.verifytypeColumnDoesNotExist();
});
Then("verify state column does not exist", () => {
OneMacPackagePage.verifystateColumnDoesNotExist();
OneMacPackagePage.verifyStateColumnDoesNotExist();
});
Then("verify status column does not exist", () => {
OneMacPackagePage.verifystatusColumnDoesNotExist();
Expand All @@ -1384,9 +1371,6 @@ Then("verify the type on row one exists", () => {
Then("verify the type on row one is Medicaid SPA", () => {
OneMacPackagePage.verifypackageRowOneTypeHasTextMedicaidSPA();
});
Then("type partial existing ID in search bar", () => {
OneMacPackagePage.typePartialExistingID();
});
Then("verify the state on row one exists", () => {
OneMacPackagePage.verifypackageRowOneStateExists();
});
Expand Down Expand Up @@ -1611,14 +1595,6 @@ Then("search for {string}", (part) => {
OneMacPackagePage.searchFor(part);
cy.wait(1000);
});
Then("search for CPOC named Chester Tester", () => {
OneMacPackagePage.searchFor("Chester Tester");
cy.wait(1000);
});
Then("search for Appendix K number", () => {
OneMacPackagePage.searchFor("MD-10330.R00.12");
cy.wait(1000);
});
Then("verify that Request a Role Change button exists", () => {
OneMacUserManagmentPage.verifyRequestARoleChangeBtnExists();
});
Expand Down
Loading

0 comments on commit 26961b7

Please sign in to comment.