mirror of
https://github.com/lukevella/rallly.git
synced 2025-04-29 02:06:34 +02:00
15 lines
577 B
TypeScript
15 lines
577 B
TypeScript
import test, { expect } from "@playwright/test";
|
|
|
|
test("should show correct language if supported", async ({ browser }) => {
|
|
const context = await browser.newContext({ locale: "de" });
|
|
const page = await context.newPage();
|
|
await page.goto("/new");
|
|
await expect(page.locator("text=Neue Umfrage")).toBeVisible();
|
|
});
|
|
|
|
test("should default to english", async ({ browser }) => {
|
|
const context = await browser.newContext({ locale: "mt" });
|
|
const page = await context.newPage();
|
|
await page.goto("/new");
|
|
await expect(page.locator("text=New Poll")).toBeVisible();
|
|
});
|