feat: add frontend e2e coverage

This commit is contained in:
a.tolmachev
2026-04-05 22:22:44 +03:00
parent d33c52d51d
commit 0bd47d9944
18 changed files with 623 additions and 7 deletions
+11
View File
@@ -0,0 +1,11 @@
const { test, expect } = require('@playwright/test');
const { login, localized } = require('./helpers');
test('operations page shows demo catalog and filter works', async ({ page }) => {
await login(page);
await expect(page.locator('.page-heading')).toHaveText(localized('Operations', 'Операции'));
await expect(page.locator('tbody tr')).toHaveCount(4);
await page.getByPlaceholder(localized('Search operations', 'Поиск операций')).fill('support');
await expect(page.locator('tbody tr')).toHaveCount(1);
await expect(page.locator('tbody tr').first()).toContainText(/support_lookup_ticket/i);
});