Skip to content

Commit

Permalink
Profile test (#1564)
Browse files Browse the repository at this point in the history
* encoded the email portion of URL for profile/`useremail`

* implement encoding test

replaced email mixed case test with encoding test

---------

Co-authored-by: Andie Swift <[email protected]>
  • Loading branch information
Valencia2019 and andieswift authored Dec 12, 2024
1 parent 35fbd00 commit 18ceb63
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ jobs:
Profile_View_CMS_User_Denied.spec.feature,
Profile_View_CMS_User_Revoked.spec.feature,
Profile_View_Helpdesk_User.spec.feature,
Profile_View_Mixed_Case_Emails.spec.feature,
Profile_View_Remove_Email_From_URL.spec.feature,
Profile_View_State_Submitter.spec.feature,
Profile_View_State_System_Admin.spec.feature,
Request_A_Role_Change_As_CMS_Read_Only.spec.feature,
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Feature: Encode profile urls
Scenario: Verify entering email in profile url shows page not found
Given I am on Login Page
When Clicking on Development Login
When Login with "an Active" "State Submitter" user
Then i am on Dashboard Page
Then navigate to "/profile/[email protected]"
Then verify the dashboard says Sorry, page not found!
Then verify page url contains 'notfound'
Then navigate to "/profile/[email protected]"
Then verify the dashboard says Sorry, page not found!
Then verify page url contains 'notfound'
Then navigate to "/profile/[email protected]"
Then verify the dashboard says Sorry, page not found!
Then verify page url contains 'notfound'
3 changes: 3 additions & 0 deletions tests/cypress/cypress/e2e/common/steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -883,6 +883,9 @@ Then(
Then("verify Error message displayed should be No Results Found", () => {
OneMacDashboardPage.noResultsFoundErrorMessage();
});
Then("verify the dashboard says Sorry, page not found!", () => {
OneMacDashboardPage.verifySorryPageNotFoundMessage();
});
Then("verify user exists with id number searched", () => {
cy.fixture("packageDashboardWaiverNumbers.json").then((data) => {
OneMacDashboardPage.verifyIDNumberExists(data.newInitialWaiverNumber2);
Expand Down
4 changes: 4 additions & 0 deletions tests/cypress/support/pages/oneMacDashboardPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,10 @@ export class oneMacDashboardPage {
cy.xpath(noResultsFound).contains("No Results Found");
}

verifySorryPageNotFoundMessage() {
cy.get("h3").contains("Sorry, page not found!");
}

typeCreatedIDNumber(s) {
cy.get(searchbar).type(s);
}
Expand Down

0 comments on commit 18ceb63

Please sign in to comment.