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,26 @@
import { test, expect, openPredict, login } from './fixtures';
test.beforeEach(async ({ context, page }) => {
await login(context);
await page.goto('/');
await page.evaluate(() => localStorage.removeItem('workspaces'));
});
test('can open the points library from the conditions panel', async ({ page }) => {
await openPredict(page);
await page
.locator('.panel-container-left')
.getByRole('button', { name: /Условия|Conditions/ })
.first()
.click();
const openBookBtn = page
.locator('.panel-container-left')
.getByRole('button')
.filter({ has: page.locator('i.bi-journal-bookmark-fill') })
.first();
await openBookBtn.click();
await expect(page.getByRole('dialog')).toBeVisible();
});