Skip to content

Commit

Permalink
SFR-1748/verify-header-footer-advSearc (#426)
Browse files Browse the repository at this point in the history
  • Loading branch information
ayan1229 authored Aug 7, 2023
1 parent eff9722 commit 4247785
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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]

Expand Down
18 changes: 17 additions & 1 deletion playwright/features/advSearch.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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
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
17 changes: 17 additions & 0 deletions playwright/support/mappings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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 = {
Expand Down

1 comment on commit 4247785

@vercel
Copy link

@vercel vercel bot commented on 4247785 Aug 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.