diff --git a/CHANGELOG.md b/CHANGELOG.md index 5a7a7976..09bbaf72 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ - 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 - Add: SFR-1749: Verfiy the footers and the respecting landing pages (homepage) +- Add: SFR-1750: Verify the Back to Search Results button is available on Item Details page ## [0.17.3] diff --git a/playwright/features/itemDetailPageElements.feature b/playwright/features/itemDetailPageElements.feature index 160bdd5d..bee0ad3f 100644 --- a/playwright/features/itemDetailPageElements.feature +++ b/playwright/features/itemDetailPageElements.feature @@ -29,4 +29,14 @@ Feature: Item Detail Page Elements Scenario: As a user when I click on "show only intems currently available online" button, only online available books should be displayed Given I go to the "item detail" page Then I double click the "items currently available online toggle" - And the "first read online button for all edition" should be displayed \ No newline at end of file + And the "first read online button for all edition" should be displayed + + Scenario: As a user when I am in item details page for a collection, I should see back to search results button + Given I go to the "home" page + Then I fill in the "homepage search box" with "Jane Austen" + And I click the "search button" + And I click the "The Novels of Jane Austen link" + And the "The Novels of Jane Austen heading" should be displayed + And the "back to search results link" should be displayed + And I click the "back to search results button" + And the "The Novels of Jane Austen link" should be displayed \ No newline at end of file diff --git a/playwright/support/mappings.ts b/playwright/support/mappings.ts index ee8a9a52..2af24418 100644 --- a/playwright/support/mappings.ts +++ b/playwright/support/mappings.ts @@ -151,6 +151,10 @@ export const elements = { "//h1[text()='General Policies and Rules']", "about page heading": "//h1[text()='About The New York Public Library']", "language page heading": "//h1[text()='Language']", + "The Novels of Jane Austen link": "//a[text()='The novels of Jane Austen']", + "The Novels of Jane Austen heading": + "//h1[text()='The novels of Jane Austen']", + "back to search results button": "//a[text()='Back to search results']", }; export const inputs = {