Skip to content

Commit

Permalink
Add copyright disclaimer text (#3852)
Browse files Browse the repository at this point in the history
* Add copyrigh disclaimer text

* Update snapshots

* Add Arabic machine translation and update media-reuse snapshots

* Skip flaky test

* Fix flaky test grouping
  • Loading branch information
zackkrida authored Mar 4, 2024
1 parent 343177f commit 4ffa14b
Show file tree
Hide file tree
Showing 64 changed files with 19 additions and 11 deletions.
6 changes: 6 additions & 0 deletions frontend/src/components/VMediaInfo/VMediaReuse.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@
})
}}
</p>
<p
v-if="media.frontendMediaType === 'image'"
class="description-regular mt-3"
>
{{ $t("mediaDetails.reuse.copyrightDisclaimer") }}
</p>
<div v-if="media.license_url" class="mt-8 grid gap-6 md:grid-cols-2">
<VMediaLicense
:license="media.license"
Expand Down
1 change: 1 addition & 0 deletions frontend/src/locales/scripts/en.json5
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,7 @@
reuse: {
title: "How to use",
description: "Visit the {media}'s website to download and use it. Make sure to credit the creator by showing the attribution information where you are sharing your work.",
copyrightDisclaimer: "Some photographs might contain copyrighted content, such as paintings, sculptures, or architectural works. Using these photographs may require additional permissions from the copyright holder of the depicted works.",
licenseHeader: "License",
toolHeader: "Public Domain",
audio: "Audio",
Expand Down
1 change: 1 addition & 0 deletions frontend/test/locales/ar.json
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@
"reuse": {
"title": "كيف تستعمل",
"description": "قم بزيارة موقع ويب {media} لتنزيله واستخدامه. تأكد من أن تنسب الفضل إلى المنشئ من خلال إظهار معلومات الإسناد حيث تشارك عملك.",
"copyrightDisclaimer": "قد تحتوي بعض الصور الفوتوغرافية على محتوى محمي بحقوق الطبع والنشر، مثل اللوحات أو المنحوتات أو الأعمال المعمارية. قد يتطلب استخدام هذه الصور الحصول على أذونات إضافية من صاحب حقوق الطبع والنشر للأعمال المصورة.",
"licenseHeader": "رخصة",
"toolHeader": "المجال العام",
"audio": "صوتي",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,20 @@ const getReportForm = (page: Page) => {
})
}

breakpoints.describeMd(({ expectSnapshot }) => {
test("unfocused close button", async ({ page }) => {
await preparePageForTests(page, "md")
await page.goto(imageUrl)
// Flaky: https://github.com/WordPress/openverse/issues/2020
test.describe.skip("content report form", () => {
test.describe.configure({ retries: 2 })

await getReportButton(page).click()
breakpoints.describeMd(({ expectSnapshot }) => {
test("unfocused close button", async ({ page }) => {
await preparePageForTests(page, "md")
await page.goto(imageUrl)

await expectSnapshot("content-report-unfocused", getReportForm(page))
})
})
await getReportButton(page).click()

test.describe("content report form", () => {
// Flaky: https://github.com/WordPress/openverse/issues/2020
test.describe.configure({ retries: 2 })
await expectSnapshot("content-report-unfocused", getReportForm(page))
})
})

breakpoints.describeMd(({ expectSnapshot }) => {
test("focused close button", async ({ page }) => {
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4ffa14b

Please sign in to comment.