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