diff --git a/src/components/extension-card.js b/src/components/extension-card.js index ba1ee4d23ec0..358d427b67a0 100644 --- a/src/components/extension-card.js +++ b/src/components/extension-card.js @@ -14,7 +14,7 @@ const Card = styled(props => )` background: var(--card-background-color) 0 0 no-repeat padding-box; color: var(--main-text-color); border: ${props => - props.$unlisted || props.$superseded ? "1px solid var(--unlisted-outline-color)" : "1px solid var(--card-outline)"}; + props.$unlisted || props.$superseded ? "1px solid var(--unlisted-outline-color)" : "1px solid var(--card-outline)"}; border-radius: 10px; opacity: 1; display: flex; @@ -141,7 +141,7 @@ const ExtensionCard = ({ extension }) => { {extension.metadata.maven?.timestamp && isValid(+extension.metadata.maven?.timestamp) - ? `Publish Date: ${format( + ? `Last Released: ${format( new Date(+extension.metadata.maven.timestamp), "MMM dd, yyyy" )}` diff --git a/src/components/extension-card.test.js b/src/components/extension-card.test.js index df20998628e2..ca12f40a7d12 100644 --- a/src/components/extension-card.test.js +++ b/src/components/extension-card.test.js @@ -42,8 +42,8 @@ describe("extension card", () => { expect(screen.getByText("Latest Version: " + version)).toBeTruthy() }) - it("renders the publish date", () => { - expect(screen.getByText("Publish Date: Oct 25, 2022")).toBeTruthy() + it("renders the Last Released", () => { + expect(screen.getByText("Last Released: Oct 25, 2022")).toBeTruthy() }) it("renders a placeholder image with appropriate source", async () => { diff --git a/src/templates/extension-detail.js b/src/templates/extension-detail.js index 33c5c87300db..4ff0c2b24b0d 100644 --- a/src/templates/extension-detail.js +++ b/src/templates/extension-detail.js @@ -408,7 +408,7 @@ const ExtensionDetailTemplate = ({ /> 0 ? metadata.maven?.timestamp : undefined, transformer: timestamp => diff --git a/src/templates/extension-detail.test.js b/src/templates/extension-detail.test.js index 53a912995781..50db2d9b0379 100644 --- a/src/templates/extension-detail.test.js +++ b/src/templates/extension-detail.test.js @@ -149,7 +149,7 @@ describe("extension detail page", () => { }) it("renders the release date", () => { - const publishDate = "Publish Date" + const publishDate = "Last Released" expect(screen.getByText(publishDate)).toBeTruthy() const dateSection = screen.getByText(publishDate).closest("section") @@ -666,7 +666,7 @@ describe("extension detail page", () => { }) it("does not render a release date", () => { - const publishDate = "Publish Date" + const publishDate = "Last Released" expect(screen.queryByText(publishDate)).toBeFalsy() }) }) diff --git a/test-integration/detail-page.test.js b/test-integration/detail-page.test.js index 49c315d769f2..e9f6ecd2f1bd 100644 --- a/test-integration/detail-page.test.js +++ b/test-integration/detail-page.test.js @@ -37,7 +37,7 @@ describe("an extension details page", () => { it("should have a publish date", async () => { await expect( - page.waitForSelector(`xpath///*[text()="Publish Date"]`) + page.waitForSelector(`xpath///*[text()="Last Released"]`) ).resolves.toBeTruthy() })