feat: tests & bootstrap
This commit is contained in:
parent
4bd927bb4e
commit
79e20ca37c
19 changed files with 706 additions and 23 deletions
24
tests/e2e/settings.spec.ts
Normal file
24
tests/e2e/settings.spec.ts
Normal 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');
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue