From 4247785221229b1ed933319f5b41e0c5fa320083 Mon Sep 17 00:00:00 2001 From: ayan <100955969+ayan1229@users.noreply.github.com> Date: Mon, 7 Aug 2023 15:45:52 -0400 Subject: [PATCH] SFR-1748/verify-header-footer-advSearc (#426) --- CHANGELOG.md | 2 ++ playwright/features/advSearch.feature | 18 +++++++++++++++++- playwright/support/mappings.ts | 17 +++++++++++++++++ 3 files changed, 36 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bebcca20..8b13e6de 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,11 @@ # CHANGE LOG ## [Pre-release] + - Add id as subsection for "Read Online" CTA analytics tracking - Add: SFR-1743: Verify advance search filters for DRB - Add: SFR-1746: Verify "read online only" toggle button on item details page +- Add: SFR-1748: Verify the headers and footers of Advanced Search page ## [0.17.3] diff --git a/playwright/features/advSearch.feature b/playwright/features/advSearch.feature index 0e43be54..eaf82c43 100644 --- a/playwright/features/advSearch.feature +++ b/playwright/features/advSearch.feature @@ -33,4 +33,20 @@ Feature: Advanced Search And I click the "advanced search button" Then the "russian language subheader" should be displayed And the "russian language checkbox" should be checked - And the "first read online button" should be displayed \ No newline at end of file + And the "first read online button" should be displayed + + Scenario: As as user I verify the headers and footers of Advanced Search Page + Given I go to the "home" page + When I click the "advanced search link" + And the "advanced search breadcrumb" should be displayed + And the "accessibility footer link" should be displayed + And the "press footer link" should be displayed + And the "careers footer link" should be displayed + And the "space rental footer link" should be displayed + And the "privacy footer link" should be displayed + And the "other policies footer link" should be displayed + And the "terms and conditions footer link" should be displayed + And the "governance footer link" should be displayed + And the "rules and regulations footer link" should be displayed + And the "about footer link" should be displayed + And the "language footer link" should be displayed \ No newline at end of file diff --git a/playwright/support/mappings.ts b/playwright/support/mappings.ts index d4b4f1c6..b8f75929 100644 --- a/playwright/support/mappings.ts +++ b/playwright/support/mappings.ts @@ -54,6 +54,7 @@ export const elements = { "publication year from filter": "#date-filter-from", "publication year to filter": "#date-filter-to", "advanced search heading": "h1:text('Advanced Search')", + "advanced search breadcrumb": "//a[@href='/advanced-search']", "keyword search label": "#search-Keyword-label", "author search label": "#search-Author-label", "subject search label": "#search-Subject-label", @@ -120,6 +121,22 @@ export const elements = { "e-reader back to DRB button": "//span[text()='Back to Digital Research Books']", "not yet available text": "//div[text()='Not yet available']", + "accessibility footer link": "//a[@href='http://www.nypl.org/accessibility']", + "press footer link": + "//a[@href='http://www.nypl.org/help/about-nypl/media-center']", + "careers footer link": "//a[@href='http://www.nypl.org/careers']", + "space rental footer link": "//a[@href='http://www.nypl.org/spacerental']", + "privacy footer link": + "//a[@href='http://www.nypl.org/help/about-nypl/legal-notices/privacy-policy']", + "other policies footer link": "//a[@href='http://www.nypl.org/policies']", + "terms and conditions footer link": + "//a[@href='http://www.nypl.org/terms-conditions']", + "governance footer link": + "//a[@href='http://www.nypl.org/help/about-nypl/leadership/board-trustees']", + "rules and regulations footer link": + "//a[@href='http://www.nypl.org/help/about-nypl/legal-notices/rules-and-regulations']", + "about footer link": "//a[@href='http://www.nypl.org/help/about-nypl']", + "language footer link": "//a[@href='http://www.nypl.org/language']", }; export const inputs = {