Files
ss-tools/specs/039-dashboard-scenario-ui/quickstart.md

2.6 KiB
Raw Blame History

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

  1. Open dashboard 42 with environment selected.
  2. Click “Создать сценарий тестирования”; verify exact dashboard/env/intent in /agent.
  3. Confirm run id appears before analysis tool activity.
  4. Review 18-step scenario: phases, step table, graph, all 19 coverage rows, warnings/blockers.
  5. Verify relevant steps distinguish Superset API evidence from immutable validated SQL Lab evidence; no runtime SQL edit/rewrite control is present.
  6. Resolve date, counterparty, and baseline choice; only affected steps update.
  7. Generate draft; preview each text artifact and download without Git changes.
  8. Verify preview-only/invalid draft blocks save.
  9. Request repository save, inspect exact paths/warnings, deny, and verify no write.
  10. Request baseline approval; blank reason must fail locally/server-side.
  11. Confirm with reason; verify approved provenance and consumed gate.
  12. Reload mid-run/draft and recover the same state.
  13. 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)

Шаги 113 проверяют 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). До T054T058 (tasks.md Phase 9) UI полностью зависит от агент-стрима, а VerificationRun-данные не отображаются.