2.6 KiB
2.6 KiB
Quickstart: Dashboard Scenario UI
Prerequisites
Stable fixtures and passing contracts from 036, 037, and 038. Backend, agent, and frontend running; one execution user and one approver.
Test Order
cd frontend
npm run test -- --run src/lib/models/__tests__/DashboardScenarioWorkspaceModel.test.ts
npm run test -- --run src/lib/components/dashboard-testing
npx playwright test e2e/tests/dashboard-scenario-ui.e2e.js
npm run lint
npm run build
Manual End-to-End
- Open dashboard 42 with environment selected.
- Click “Создать сценарий тестирования”; verify exact dashboard/env/intent in /agent.
- Confirm run id appears before analysis tool activity.
- Review 18-step scenario: phases, step table, graph, all 19 coverage rows, warnings/blockers.
- Verify relevant steps distinguish Superset API evidence from immutable validated SQL Lab evidence; no runtime SQL edit/rewrite control is present.
- Resolve date, counterparty, and baseline choice; only affected steps update.
- Generate draft; preview each text artifact and download without Git changes.
- Verify preview-only/invalid draft blocks save.
- Request repository save, inspect exact paths/warnings, deny, and verify no write.
- Request baseline approval; blank reason must fail locally/server-side.
- Confirm with reason; verify approved provenance and consumed gate.
- Reload mid-run/draft and recover the same state.
- Repeat with unauthorized user; no run or confirm control depending on denied operation.
Exit Gates
- Correct context for three dashboards and no stale reuse.
- 18-step fixture usable at 1366px and keyboard accessible.
- Parameter readiness projection under 200ms in L1 tests.
- 100% save/approve actions use 036 gate.
- No direct-SQL action/copy.
- Frontend tests/lint/build and Playwright smoke pass.
Known Gap (2026-08-07 MVP audit)
Шаги 1–13 проверяют agent-driven сценарий — работают через события 036. Но frontend/src/lib/api/dashboard-testing.ts (scenario compile/validate/resolve + verification) не импортируется ни одним модулем: без запущенного агента сценарий не строится. Pipeline views (badge/history/StructureDiff) существуют, но не привязаны к страницам и ждут GET-эндпоинтов 037 (T081) и deploy-хуков 037 (T080). До T054–T058 (tasks.md Phase 9) UI полностью зависит от агент-стрима, а VerificationRun-данные не отображаются.