Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SFR: 2257 - fix pw tests for license page changes #539

Merged
merged 2 commits into from
Oct 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading