-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #540 from NYPL/development
SFR-2254: Release 0.18.4 to production
- Loading branch information
Showing
34 changed files
with
245 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
playwright/features/licensePage.feature → playwright/features/copyrightPage.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import React from "react"; | ||
import { Rights } from "~/src/types/DataModel"; | ||
import Link from "~/src/components/Link/Link"; | ||
|
||
const CopyrightLink: React.FC<{ rights: Rights }> = ({ rights }) => { | ||
return ( | ||
<Link to="/copyright"> | ||
{rights ? `Copyright: ${rights.rightsStatement}` : "Copyright: Unknown"} | ||
</Link> | ||
); | ||
}; | ||
|
||
export default CopyrightLink; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
import React from "react"; | ||
import { render } from "~/src/__tests__/testUtils/render"; | ||
import { screen } from "@testing-library/react"; | ||
import Copyright from "./Copyright"; | ||
|
||
it("renders Copyright page unchanged", async () => { | ||
const tree = render(<Copyright />); | ||
expect(tree.container.firstChild).toMatchSnapshot(); | ||
}); | ||
|
||
describe("Copyright Page", () => { | ||
beforeEach(() => { | ||
render(<Copyright />); | ||
}); | ||
|
||
it("renders the Copyright Explanations heading", () => { | ||
expect( | ||
screen.getByRole("heading", { name: "Copyright Explanations" }) | ||
).toBeInTheDocument(); | ||
}); | ||
|
||
it("renders the Public Domain headings", () => { | ||
expect( | ||
screen.getByRole("heading", { name: "Public Domain" }) | ||
).toBeInTheDocument(); | ||
expect( | ||
screen.getByRole("heading", { name: "Public Domain (US Only)" }) | ||
).toBeInTheDocument(); | ||
}); | ||
|
||
it("renders the Creative Commons section", () => { | ||
expect( | ||
screen.getByRole("heading", { name: "Creative Commons Licenses" }) | ||
).toBeInTheDocument(); | ||
|
||
expect( | ||
screen.getByRole("link", { name: "Creative Commons licenses" }) | ||
).toHaveAttribute("href", "https://creativecommons.org/"); | ||
|
||
expect( | ||
screen.getByRole("link", { name: "Attribution 3.0 Unported (CC BY 3.0)" }) | ||
).toHaveAttribute("href", "https://creativecommons.org/licenses/by/3.0/"); | ||
}); | ||
|
||
it("renders the CC0 section", () => { | ||
expect( | ||
screen.getByRole("heading", { name: "CC0 Public Domain Dedication" }) | ||
).toBeInTheDocument(); | ||
|
||
expect( | ||
screen.getByRole("link", { | ||
name: "CC0 1.0 Universal (CC0 1.0) Public Domain Dedication", | ||
}) | ||
).toHaveAttribute( | ||
"href", | ||
"https://creativecommons.org/publicdomain/zero/1.0/" | ||
); | ||
}); | ||
|
||
it("renders the GNU section", () => { | ||
expect( | ||
screen.getByRole("heading", { name: "GNU General Public License" }) | ||
).toBeInTheDocument(); | ||
|
||
expect( | ||
screen.getByRole("link", { | ||
name: "GNU General Public License", | ||
}) | ||
).toHaveAttribute("href", "http://www.gnu.org/licenses/gpl.html"); | ||
}); | ||
|
||
it("renders the In Copyright heading", () => { | ||
expect( | ||
screen.getByRole("heading", { name: "In Copyright" }) | ||
).toBeInTheDocument(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.