feat: tests & bootstrap

This commit is contained in:
Anatoly Antonov 2026-04-22 02:26:43 +09:00
parent 4bd927bb4e
commit 79e20ca37c
19 changed files with 706 additions and 23 deletions

View file

@ -0,0 +1,24 @@
import { test, expect, openPredict, login } from './fixtures';
test.beforeEach(async ({ context }) => {
await login(context);
});
test('switching locale to English updates UI text', async ({ page }) => {
await openPredict(page);
await page
.locator('.panel-container-right')
.getByRole('button', { name: /Настройки|Settings/ })
.first()
.click();
const langSelect = page.locator('.panel-container-right select').first();
await langSelect.selectOption('en');
await expect(
page.locator('.panel-container-right').getByRole('button', { name: /Workspaces/ }).first(),
).toBeVisible({ timeout: 5_000 });
await langSelect.selectOption('ru');
});