AllAi/apps/web/tests/e2e/locales.spec.ts
2025-11-14 21:54:04 +03:00

14 lines
401 B
TypeScript

import { test, expect } from '@playwright/test';
const baseUrl = process.env.BASE_URL ?? 'http://localhost:3000';
['en', 'ru'].forEach((locale) => {
test(locale switch works for , async ({ page }) => {
await page.goto(baseUrl);
await page.click( ext=);
await expect(page).toHaveURL(new RegExp(/(/|$)));
await expect(page.locator('h1')).toContainText(/AllAI Studio/);
});
});