Files
ui/_docs/_autodev_state.md
T
Oleksandr Bezdieniezhnykh ab22223580 [AZ-457] [AZ-459] [AZ-465] [AZ-481] Batch 2 - auth/enum/i18n/CI tests
Implements 22 blackbox test scenarios across the four batch-2 tasks:

AZ-457 - Auth & token handling (11 scenarios, fast + e2e):
- src/api/client.test.ts: FT-P-02, NFT-SEC-04, NFT-PERF-02, NFT-RES-01,
  NFT-RES-08 (apiClient surface)
- src/auth/AuthContext.test.tsx: FT-P-01 (it.fails - Step 4 drift),
  FT-P-03, NFT-SEC-01, NFT-SEC-02
- src/auth/ProtectedRoute.test.tsx: FT-N-04, NFT-RES-08 (router half)
- e2e/tests/auth.e2e.ts: FT-P-02 e2e, NFT-SEC-01/02/03 (cookie attrs
  via Playwright context.cookies(), gated by suite stack)

AZ-459 - Wire-contract enums (4 scenarios):
- tests/wire_contract.test.ts: FT-P-04 (AnnotationStatus, it.fails),
  FT-P-05 (MediaStatus + Affiliation it.fails; CombatReadiness skip
  per verification_pending), FT-P-06 (AnnotationSource control +
  spec value-set membership), FT-N-15 (typed-enum shape + skip for
  value-set verification)
- e2e/tests/wire_contract.e2e.ts: FT-P-06 against real annotations/
  service, drift-gated via AZAION_RUN_DRIFT_E2E
- scripts/run-tests.sh STC-FN15: ripgrep static for MediaType
  magic-literal hygiene

AZ-465 - i18n (4 scenarios, all static + quarantined fast):
- scripts/check-i18n-coverage.mjs: FT-P-22 (en vs ua key parity) +
  FT-P-23 (no raw user strings outside t() in src/**/*.tsx); refined
  JSX text-node regex with negative lookbehind to drop TS generics
  + arrow-function false positives
- tests/i18n-allowlist.json: snapshot of current pre-existing raw
  strings (CI gates growth per AZ-465 Constraints)
- tests/i18n.test.tsx: FT-P-24 + FT-P-25 it.skip (QUARANTINE - i18n
  detector + persistence not wired today; control tests assert the
  gap so the skip flips to a real test once Step 4 lands)

AZ-481 - CI image labels (3 scenarios, static against
  .woodpecker/build-arm.yml):
- scripts/check-ci-image-labels.mjs: NFT-RES-LIM-11 (tag scheme
  ${CI_COMMIT_BRANCH}-arm), NFT-RES-LIM-12 (revision/created/source
  PASS, image.title reported as DRIFT - foundation/CI-CD owns the
  fix), NFT-RES-LIM-13 (revision = $CI_COMMIT_SHA)

Cross-cutting:
- scripts/run-tests.sh: src_grep now excludes *.test.{ts,tsx} +
  *.spec.{ts,tsx} so production-source static checks (STC-SEC4,
  STC-FN15, etc.) don't false-positive on test prose
- tsconfig.json: exclude src/**/*.{test,spec}.{ts,tsx} so production
  tsc -b doesn't see jest-dom matchers
- _docs/03_implementation/batch_02_report.md: full per-task AC
  coverage matrix + drift inventory + verification run
- _docs/_autodev_state.md: 22 tasks remain after batch 2

Verification (host):
  fast    : 7 files, 38 passed | 4 skipped (quarantined)
  static  : 19/19 checks PASS (was 13 in batch 1; +6 from batch 2)
  e2e     : not run on host (Risk 4 - requires suite docker stack)

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-11 03:27:55 +03:00

1.5 KiB

Autodev State

Current Step

flow: existing-code step: 6 name: Implement Tests status: in_progress sub_step: phase: 14 name: batch-loop detail: "22 tasks remain after batch 2 (AZ-458, AZ-460..AZ-464, AZ-466..AZ-480, AZ-482)" retry_count: 0 cycle: 1 tracker: jira step_4_5_glossary_vision: confirmed step_2_baseline_routing: per-finding-recommended (option A) step_3_results_report_authoring: agent (option A) step_3_ac_gap_handling: rollback-to-6c (option A)

Notes

  • Phase A baseline cycle. Step 1 (Document) complete; see _docs/02_document/state.json, FINAL_report.md, architecture.md, glossary.md, plus _docs/01_solution/solution.md and _docs/00_problem/{problem,acceptance_criteria,restrictions,security_approach}.md.
  • Suite-level architecture: ../_docs/. UI design: _docs/ui_design/.
  • Legacy reference: _docs/legacy/wpf-era.md + research copy at suite/annotations-research (detached @ 22529c2).
  • /document scope was src/ AND mission-planner/ (two disjoint groups).
  • 2026-05-11 Step 6 entry: added "Blackbox Tests" cross-cutting component to _docs/02_document/module-layout.md so the implement skill's Step 4 (file ownership) can resolve test-task ownership for AZ-456..AZ-482 (epic AZ-455).
  • 2026-05-11 batch 1 (AZ-456) shipped: vitest+MSW (fast) + Playwright e2e harness + stubs + scripts. 11 fast tests pass; 13 static checks pass. AZ-456 → In Testing; report at _docs/03_implementation/batch_01_report.md. Next batch picks up AZ-457..AZ-482 (26 tasks remaining).