Skip to content

Commit

Permalink
SFR: 2257 - fix pw tests for license page changes (#539)
Browse files Browse the repository at this point in the history
* SFR-2257: Update and Modify License Page PW tests

* update CHANGELOG
  • Loading branch information
ayan1229 authored Oct 16, 2024
1 parent 9208583 commit 9d5823c
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 17 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
- Update License page to Copyright and add section for "In Copyright" explanation
- Remove error codes from error page
- Update styling for mobile view of error page
- SFR:2257 - fix pw tests for modified license page

## [0.18.3]

Expand Down
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 9d5823c

Please sign in to comment.