diff --git a/.github/PULL_REQUEST_TEMPLATE b/.github/PULL_REQUEST_TEMPLATE index 5cdbad83..f0f7ddac 100644 --- a/.github/PULL_REQUEST_TEMPLATE +++ b/.github/PULL_REQUEST_TEMPLATE @@ -1,4 +1,4 @@ -[Jira Ticket](http://jira.nypl.org/browse/SFR-XXX) +[Jira Ticket](https://newyorkpubliclibrary.atlassian.net/browse/SFR-XXX) ### This PR does the following: - diff --git a/CHANGELOG.md b/CHANGELOG.md index b6d143f6..67adf529 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,8 @@ - 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 - Add error page for /read links with invalid source ## [0.18.1] diff --git a/playwright/features/headerLinks.feature b/playwright/features/headerLinks.feature index a9101ccc..38e216e9 100644 --- a/playwright/features/headerLinks.feature +++ b/playwright/features/headerLinks.feature @@ -18,17 +18,17 @@ 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 @@ -36,14 +36,27 @@ Feature: Header Links Then the 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 + And the 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" | diff --git a/playwright/support/mappings.ts b/playwright/support/mappings.ts index 210ca343..305aee54 100644 --- a/playwright/support/mappings.ts +++ b/playwright/support/mappings.ts @@ -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 = {