Adds client-side i18n support, language settings, translated UI copy, and locale parity coverage.
24 lines
963 B
TypeScript
24 lines
963 B
TypeScript
import { test, expect } from "./fixtures";
|
|
import { gotoAppShell, openSettings } from "./helpers/app";
|
|
import { openSettingsSection } from "./helpers/settings";
|
|
|
|
test("Settings language selector switches General labels", async ({ page }) => {
|
|
test.setTimeout(120_000);
|
|
|
|
await gotoAppShell(page);
|
|
await openSettings(page);
|
|
await openSettingsSection(page, "general");
|
|
|
|
await expect(page.getByText("Default send", { exact: true }).first()).toBeVisible();
|
|
|
|
await page.getByRole("button", { name: "System", exact: true }).click();
|
|
await page.getByRole("button", { name: "Simplified Chinese", exact: true }).click();
|
|
|
|
await expect(page.getByText("默认发送", { exact: true }).first()).toBeVisible();
|
|
|
|
await page.getByRole("button", { name: "简体中文", exact: true }).click();
|
|
await page.getByRole("button", { name: "English", exact: true }).click();
|
|
|
|
await expect(page.getByText("Default send", { exact: true }).first()).toBeVisible();
|
|
});
|