14 lines
401 B
TypeScript
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/);
|
|
});
|
|
});
|