24 lines
673 B
TypeScript
24 lines
673 B
TypeScript
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');
|
|
});
|