diff --git a/frontend/test/locales/scripts/valid-locales.json b/frontend/test/locales/scripts/valid-locales.json index f7db2f42d21..83cee23cbe3 100644 --- a/frontend/test/locales/scripts/valid-locales.json +++ b/frontend/test/locales/scripts/valid-locales.json @@ -6,7 +6,7 @@ "iso": "ar", "wpLocale": "ar", "dir": "rtl", - "translated": 100, + "translated": 48, "file": "ar.json" }, { @@ -18,15 +18,5 @@ "dir": "ltr", "translated": 100, "file": "es.json" - }, - { - "code": "ru", - "name": "Russian", - "nativeName": "Русский", - "iso": "ru", - "wpLocale": "ru_RU", - "dir": "ltr", - "translated": 48, - "file": "ru.json" } ] diff --git a/frontend/test/playwright/e2e/translation-banner.spec.ts b/frontend/test/playwright/e2e/translation-banner.spec.ts index 93a8f2cdc61..fe40e7f65e6 100644 --- a/frontend/test/playwright/e2e/translation-banner.spec.ts +++ b/frontend/test/playwright/e2e/translation-banner.spec.ts @@ -3,7 +3,7 @@ import { test, expect } from "@playwright/test" import { preparePageForTests } from "~~/test/playwright/utils/navigation" // Do not use one of the test locales, as those all have "complete" generated translations -const russianSearchPath = "/ru/search?q=dog" +const localeSearchPath = "/ar/search?q=dog" test.describe.configure({ mode: "parallel" }) @@ -11,7 +11,7 @@ test.describe("translation banner", () => { test("Can see the translation banner and go to the correct link", async ({ page, }) => { - await page.goto(russianSearchPath) + await page.goto(localeSearchPath) await expect(page.locator("text=100%")).toBeVisible({ timeout: 500 }) const [page1] = await Promise.all([ @@ -19,7 +19,7 @@ test.describe("translation banner", () => { page.click("text=contributing a translation"), ]) await expect(page1).toHaveURL( - "https://translate.wordpress.org/projects/meta/openverse/ru/default/" + "https://translate.wordpress.org/projects/meta/openverse/ar/default/" ) }) @@ -28,23 +28,23 @@ test.describe("translation banner", () => { }) => { await preparePageForTests(page, "xl", { dismissBanners: true }) - await page.goto(russianSearchPath) + await page.goto(localeSearchPath) await expect(page.locator('[data-testid="banner-translation"]')).toBeHidden( { timeout: 500 } ) }) test("Can close the translation banner", async ({ page }) => { - await page.goto(russianSearchPath) + await page.goto(localeSearchPath) await page.click('[data-testid="banner-translation"] button:visible') const banner = page.locator('.span:has-text("Help us get to 100 percent")') await expect(banner).toBeHidden({ timeout: 500 }) // Test that the banner does not re-appear when navigating to the 'About us' page - await page.locator('li a[href="/ru/about"]').click() + await page.locator('li a[href="/ar/about"]').click() await expect(banner).toBeHidden({ timeout: 500 }) - await page.goto(russianSearchPath) + await page.goto(localeSearchPath) await expect(banner).toBeHidden({ timeout: 500 }) }) })