26 lines
722 B
TypeScript
26 lines
722 B
TypeScript
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();
|
|
});
|