From 9e05ee90c417f583ad39caa2c27ee3bc108f3fee Mon Sep 17 00:00:00 2001 From: ayan <100955969+ayan1229@users.noreply.github.com> Date: Wed, 16 Oct 2024 21:58:45 +0600 Subject: [PATCH] SFR-2257: Update and Modify License Page PW tests --- ...ensePage.feature => copyrightPage.feature} | 10 +++++----- playwright/features/drbFooters.feature | 20 +++++++++---------- playwright/features/headerLinks.feature | 2 +- playwright/support/mappings.ts | 2 +- 4 files changed, 17 insertions(+), 17 deletions(-) rename playwright/features/{licensePage.feature => copyrightPage.feature} (60%) diff --git a/playwright/features/licensePage.feature b/playwright/features/copyrightPage.feature similarity index 60% rename from playwright/features/licensePage.feature rename to playwright/features/copyrightPage.feature index e2a786b5..385ad068 100644 --- a/playwright/features/licensePage.feature +++ b/playwright/features/copyrightPage.feature @@ -1,13 +1,13 @@ Feature: License Page - Scenario: As a user I want to verify the headers and subheaders of DRB License Page - Given I go to the "license" page - Then the "license explanations header" should be displayed + Scenario: As a user I want to verify the headers and subheaders of DRB Copyright Page + Given I go to the "copyright" page + Then the "copyright explanations header" should be displayed Then the "public domain header" should be displayed Then the "public domain us only header" should be displayed Then the "creative commons licenses header" should be displayed - Scenario: As a user I verify the subheaders of DRB License Page are displayed correctly - Given I go to the "license" page + Scenario: As a user I verify the subheaders of DRB Copyright Page are displayed correctly + Given I go to the "copyright" page Then the "public domain subheader" should be displayed Then the "public domain us only subheader" should be displayed \ No newline at end of file diff --git a/playwright/features/drbFooters.feature b/playwright/features/drbFooters.feature index 545c71cf..62774738 100644 --- a/playwright/features/drbFooters.feature +++ b/playwright/features/drbFooters.feature @@ -15,13 +15,13 @@ Feature: Footer Links And the "language footer link" should be displayed Examples: - | DRB | - | "home" | - | "advanced search" | - | "search results" | - | "item details" | - | "edition details" | - | "collection" | - | "read online" | - | "license" | - | "about" | + | DRB | + | "home" | + | "advanced search" | + | "search results" | + | "item details" | + | "edition details" | + | "collection" | + | "read online" | + | "copyright" | + | "about" | diff --git a/playwright/features/headerLinks.feature b/playwright/features/headerLinks.feature index 38e216e9..3224d469 100644 --- a/playwright/features/headerLinks.feature +++ b/playwright/features/headerLinks.feature @@ -27,7 +27,7 @@ Feature: Header Links | "edition details" | | "collection" | | "read online" | - | "license" | + | "copyright" | | "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 diff --git a/playwright/support/mappings.ts b/playwright/support/mappings.ts index 4e20ea76..fc120590 100644 --- a/playwright/support/mappings.ts +++ b/playwright/support/mappings.ts @@ -213,7 +213,7 @@ export const elements = { "language footer link": "//a[@href='http://www.nypl.org/language']", /** license page locators */ - "license explanations header": "//h1[text()='License Explanations']", + "copyright explanations header": "//h1[text()='Copyright Explanations']", "public domain header": "//h2[text()='Public Domain']", "creative commons licenses header": "//h2[text()='Creative Commons Licenses']",