Skip to content

Commit

Permalink
Merge branch 'development' into NO-REF/update-jira-link
Browse files Browse the repository at this point in the history
  • Loading branch information
jackiequach committed Jul 17, 2024
2 parents d080432 + 1da12b2 commit 1ac47ef
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 22 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
- Fix cut off text on search bar dropdown
- Fix broken link on the About page
- SFR-2008: Automate License Page Headers and Sub-Headers
- SFR-2033: Verify the external NYPL header links of DRB App
- Update PR template with new Jira link

## [0.18.1]
Expand Down
57 changes: 35 additions & 22 deletions playwright/features/headerLinks.feature
Original file line number Diff line number Diff line change
Expand Up @@ -18,32 +18,45 @@ Feature: Header Links
And the "get help header link" should be displayed
And the "search header link" should be displayed

Examples:
| DRB |
| "home" |
| "advanced search" |
| "search results" |
| "item details" |
| "edition details" |
| "collection" |
| "read online" |
| "license" |
| "about" |
Examples:
| DRB |
| "home" |
| "advanced search" |
| "search results" |
| "item details" |
| "edition details" |
| "collection" |
| "read online" |
| "license" |
| "about" |

Scenario: As a user I navigate to the Digital Research Books home page and verify the account and search header sub-links and elements are displayed
Given I go to the "home" page
When I click the <first header link>
Then the <second header link> should be displayed

Examples:
| first header link | second header link |
| "my account header link" | "catalog header link" |
| "my account header link" | "research catalog header link" |
| "my account header link" | "close my account header link" |
| "search header link" | "search header label" |
| "search header link" | "search header text field" |
| "search header link" | "search books music movies radio button" |
| "search header link" | "search research catalog radio button" |
| "search header link" | "search library website radio button" |
| "search header link" | "search header button" |
| "search header link" | "close search header link" |
| first header link | second header link |
| "my account header link" | "catalog header link" |
| "my account header link" | "research catalog header link" |
| "my account header link" | "close my account header link" |
| "search header link" | "search header label" |
| "search header link" | "search header text field" |
| "search header link" | "search books music movies radio button" |
| "search header link" | "search research catalog radio button" |
| "search header link" | "search library website radio button" |
| "search header link" | "search header button" |
| "search header link" | "close search header link" |

Scenario: As a user when I click on Locations I should be directed to NYPL location page
Given I go to the "home" page
Then I click the <first header link>
And the <landing page header> should be displayed

Examples:
| first header link | landing page header |
| "locations header link" | "locations page header" |
| "library card header link" | "get a library card page header" |
| "email updates header link" | "get email updates page header" |
| "donate header link" | "donation page button" |
| "shop header link" | "shop page footer" |
8 changes: 8 additions & 0 deletions playwright/support/mappings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,14 @@ export const elements = {
"//p[contains(text(),'Works may be in the public domain in the Unites St')]",
"public domain us only subheader":
"//p[contains(text(),'Works may be in the public domain in the Unites States')]",

/** external page locators */
"locations page header":
"//div[contains(text(),'Welcome to The New York Public Library. Discover o')]",
"get a library card page header": "//h1[@id='hero-banner']",
"get email updates page header": "//h1[@id='page-title']",
"donation page button": "//button[text()='Donate']",
"shop page footer": "//h2[text()='All Proceeds Support the Library']",
};

export const inputs = {
Expand Down

0 comments on commit 1ac47ef

Please sign in to comment.