Skip to content

test(gui): RTL sprint Phase 2 — store-coupled component tests - #58

Merged
CameronBrooks11 merged 1 commit into
mainfrom
chore/gui-rtl-sprint-phase2
Apr 16, 2026
Merged

CameronBrooks11 merged 1 commit into
mainfrom
chore/gui-rtl-sprint-phase2

Conversation

@CameronBrooks11

Copy link
Copy Markdown
Member
  • Add 13 test files for store-coupled components (StatusBar, MandrelForm, TowForm, MachineSettingsForm, HoopLayerEditor, SkipLayerEditor, HelicalLayerEditor, LayerStack, StreamLog, ManualControlSection, ConnectionSection, FileStreamingSection, DiagnosticsDialog)
  • Fix renderWithProviders: export CliHealthContext from context module and inject it via CliHealthContext.Provider directly — eliminates the vi.mock-in-helper-module problem entirely (vi.mock only intercepts in test files, not imported utilities)
  • Fix StreamLog: stub window.HTMLElement.prototype.scrollIntoView in beforeEach (jsdom does not implement scrollIntoView)
  • Fix DiagnosticsDialog: use getAllByRole to disambiguate header X and footer Close buttons that share the same accessible name
  • Raise vitest coverage thresholds: lines/stmts/fns 50→55, branches 32→35
  • Total test count: 500 tests across 43 test files

- Add 13 test files for store-coupled components (StatusBar, MandrelForm,
  TowForm, MachineSettingsForm, HoopLayerEditor, SkipLayerEditor,
  HelicalLayerEditor, LayerStack, StreamLog, ManualControlSection,
  ConnectionSection, FileStreamingSection, DiagnosticsDialog)
- Fix renderWithProviders: export CliHealthContext from context module and
  inject it via CliHealthContext.Provider directly — eliminates the
  vi.mock-in-helper-module problem entirely (vi.mock only intercepts in
  test files, not imported utilities)
- Fix StreamLog: stub window.HTMLElement.prototype.scrollIntoView in
  beforeEach (jsdom does not implement scrollIntoView)
- Fix DiagnosticsDialog: use getAllByRole to disambiguate header X and
  footer Close buttons that share the same accessible name
- Raise vitest coverage thresholds: lines/stmts/fns 50→55, branches 32→35
- Total test count: 500 tests across 43 test files
@CameronBrooks11
CameronBrooks11 merged commit b0f2e59 into main Apr 16, 2026
12 checks passed
@CameronBrooks11
CameronBrooks11 deleted the chore/gui-rtl-sprint-phase2 branch April 16, 2026 05:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant