Skip to content

Commit

Permalink
SFR-2257: Update and Modify License Page PW tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ayan1229 committed Oct 16, 2024
1 parent 9208583 commit 9e05ee9
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
Original file line number Diff line number Diff line change
@@ -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
20 changes: 10 additions & 10 deletions playwright/features/drbFooters.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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" |
2 changes: 1 addition & 1 deletion playwright/features/headerLinks.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion playwright/support/mappings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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']",
Expand Down

0 comments on commit 9e05ee9

Please sign in to comment.