feat(admin): Playwright E2E каркас — TESTIDS, login/shell/roles, CI mock. Refs EventHub/EventHubFrontAdmin#33 #34 #35
CI / test (push) Failing after 14m2s
CI / push-image (push) Has been skipped
CI / ci-done (push) Failing after 0s

This commit is contained in:
2026-07-14 22:18:34 +03:00
parent 2a32465050
commit 87c6b55e81
19 changed files with 493 additions and 1462 deletions
+10
View File
@@ -0,0 +1,10 @@
import type { Page } from '@playwright/test';
import { MOCK_ADMIN } from '../mocks/adminApi';
export async function loginAsE2EAdmin(page: Page) {
await page.goto('/login');
await page.getByLabel(/email/i).fill(MOCK_ADMIN.email);
await page.getByLabel(/пароль|password/i).fill('e2e-pass');
await page.getByTestId('btn-login').click();
await page.waitForURL(/\/(dashboard|inbox)/);
}