Skip to content

fix(tests): align companion toolbar column assertions with 1x9 grid#165

Merged
HanSur94 merged 4 commits into
mainfrom
claude/great-carson-0OopH
May 29, 2026
Merged

fix(tests): align companion toolbar column assertions with 1x9 grid#165
HanSur94 merged 4 commits into
mainfrom
claude/great-carson-0OopH

Conversation

@HanSur94
Copy link
Copy Markdown
Owner

Summary

Fixes two pre-existing failures in tests/suite/TestFastSenseCompanion.m whose expected toolbar-column values were stale against the post-PR-#159 1×9 companion toolbar grid.

  • testToolbarHasWikiButton — Wiki button asserted at column 6, but it sits at column 7 (FastSenseCompanion.m:410).
  • testToolbarGearMovedToColumn8 — Settings gear asserted at column 8, but it sits at column 9 (FastSenseCompanion.m:423).

Root cause

Commit e2ded77 ("post-second-merge cleanup — Wiki Browser lint + 1×9 toolbar tests") migrated the parallel TestFastSenseCompanionPlantLogToolbar.m to the new 1×9 grid but missed these two matching assertions in TestFastSenseCompanion.m. Confirmed pre-existing — both fail against HEAD~1 and are unrelated to any in-flight feature work.

Changes

  • Updated the two verifyEqual column literals (6→7, 8→9) and their diagnostic messages.
  • Corrected the decoupled testToolbarHasWikiButton header docstring (6→7), surfaced by a post-fix audit sweep.

Audit

A sweep of both companion-toolbar test files confirmed no other stale column assertions remain. TestFastSenseCompanionPlantLogToolbar.m independently asserts the gear at column 9 (corroborating this fix) and Plant Log at column 4.

Verification

TestFastSenseCompanion.m confirmed passing in an isolated local MATLAB run (expected 73/73). The matlab MCP bridge isn't reachable from the remote sandbox, so verification was run locally.

Deferred (separate cleanup)

Renaming testToolbarGearMovedToColumn8testToolbarGearAtColumn9 (and its line-1207 docstring) touches grep-based references and is intentionally left for a follow-up.

https://claude.ai/code/session_019F1v9yHpbCd7S6uSdjAA3w


Generated by Claude Code

claude added 4 commits May 26, 2026 18:18
…bar grid

testToolbarHasWikiButton and testToolbarGearMovedToColumn8 in
tests/suite/TestFastSenseCompanion.m asserted the pre-PR-#159 toolbar
columns (Wiki at 6, gear at 8). The production layout in
FastSenseCompanion.m:313-324 is a 1x9 grid with Wiki at col 7 and
Settings gear at col 9. Commit e2ded77 updated the parallel
TestFastSenseCompanionPlantLogToolbar.m for the new grid but missed
these two assertions.

Method name testToolbarGearMovedToColumn8 retained per user direction;
the matching docstring + method-rename cleanup is deferred to a
separate task. Diagnostic-message text on the same verifyEqual calls
updated alongside the literals so failure output stays coherent.

Expected post-fix: TestFastSenseCompanion 73/73 PASS (or 74/74 if the
parallel quick task 260526-r9x PerTag commit lands first).
- STATE.md row appended for 260526-tcf (commit e321ac7)
- SUMMARY.md captures root cause, design decisions, deferred follow-ups
  (method rename + docstring cleanup), and that MATLAB test verification
  was deferred to the user's local session because the matlab MCP tools
  do not reach into the remote sandbox.
…dit sweep

Post-fix audit sweep (grep for column literals across both companion
toolbar test files) surfaced one straggler: the testToolbarHasWikiButton
header docstring still read "sits in column 6" above an assertion that
now checks 7. The docstring carries no method-name coupling
(testToolbarHasWikiButton has no column number), so it is corrected here
— same defect class as the assertion, zero rename risk.

Left untouched: the testToolbarGearMovedToColumn8 docstring ("column 8"),
which mirrors its method name and travels with the deferred rename — a
"MovedToColumn8" + "column 9" header would read as a self-contradiction.

Sweep also confirmed TestFastSenseCompanionPlantLogToolbar.m is fully
consistent with the 1x9 grid (Plant Log col 4; gear col 9 — independently
corroborating the gear-at-9 fix) and no other stale column assertions
exist. SUMMARY updated with the audit result and scope reasoning.
@HanSur94 HanSur94 merged commit f83830b into main May 29, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented May 29, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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.

2 participants