Skip to content

spike(test): audit UI test-layer for gutted-feature fixtures and mock shields #2528

@alexey-pelykh

Description

@alexey-pelykh

Summary

Type: SPIKE — audit only; fixes spawn as follow-up items.

#2336 Area 8 ("Test-layer hardening") identified global mock shields that hid production bugs — e.g., runPreparedReply mock in src/auto-reply/reply/get-reply.test-mocks.ts silently replaced a real function with vi.fn(async () => undefined), preventing integration tests from exercising the real call chain. Analogous patterns may exist in UI tests: fixtures referencing gutted features that silently validate code paths no longer in production.

Approach

  1. Grep ui/src/**/*.test.ts for gutted-feature references:
    • skills, Skills, agentSkills
    • plugin, Plugin, pluginId
    • thinkingLevel, chatThinkingLevel, thinkLevel
    • autoAllowSkills
  2. For each hit, classify:

Deliverable

Classified inventory. For MOCK SHIELD items, open a high-priority follow-up issue with specific integration tests to add (per #2336 Area 8 pattern). For DEAD FIXTURE items, open a cleanup issue or consolidate into one test-cleanup PR.

AC

  • Classified inventory (table of all hits with file:line + classification)
  • Follow-up issues opened per category (DEAD FIXTURE sweep + MOCK SHIELD per-item)

Typed exception

SPIKE — AC is the audit inventory, not test modifications.

Context

Post-#2336 UI remnants audit. This spike extends the test-layer hardening theme from #2336 Area 8 into the UI test suite specifically.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions