Repository navigation
fix(tests): Automations hero wash check fails when the window is maximized between measuring the page and the hero - #2176
Conversation
…mized between measuring the page and the hero SaveAutomationsWindow maximizes a window that is not maximized yet. The hero wash proof settled only the page aperture, then took the top capture (which could maximize the window) and read the hero once, so the aperture and hero could come from different layouts. Maximize first, measure the aperture, headline and hero in one settled sample, check that the layout did not move across the top capture or the partial scroll, and report the measured values when the interval is too small. Co-authored-by: Copilot App <[email protected]>
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThe PR maximizes the Automations window before measuring and verifies stable geometry around the hero screenshot. Example: The Light-theme wash test starts with a restored window before capturing a maximized 1936×1048 window.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it repairs a source-verifiable test race still present on main, preserves the rendering assertions, and introduces no actionable defect found in this review. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe native Automations fixture test reads UI Automation geometry and window screenshots, then checks that the hero wash scrolls while the page backplate remains anchored. flowchart LR
A[Fixture Automations page] --> B[Maximize window]
B --> C[Settle geometry]
C --> D[Capture window]
D --> E[Scroll page]
E --> F[Check wash and backplate pixels]
Technical reviewBest possible solution: Keep the repair in the existing fixture test, measuring one maximized layout while preserving the independent wash and backplate assertions. Do we have a high-confidence way to reproduce the issue? Source confirms that screenshot capture can maximize the window between aperture and hero measurements; the author reports a matching restored-window negative control, but this review ran no target code. Is this the best way to solve the issue? The fix addresses the ordering cause through the existing fixture owner, uses settled geometry rather than a longer delay, and retains the independent rendering checks. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 90653249bd8a. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 13, 2026, 1:38 PM ET / 18:38 UTC. |
Resolves conflicts with openclaw#2173 (session dashboard tab beside chat), openclaw#2176, openclaw#2175, openclaw#2116 and openclaw#2172: - ReactorBoardView: embedded board keeps main's compact 12/0 padding, standalone pages keep the shared PageResponsiveLayout PaddingTop/PaddingBottom. - Resources.resw (all 6 locales): keep this PR's PageAction_Refresh keys and main's Chat_Panel_Dashboard. - TestTimingPatternBaseline.json: main's counts, then lowered for this branch. Co-authored-by: Copilot App <[email protected]>
What Problem This Solves
Fixes: the Automations hero wash fixture check (
Automations_HeroWashScrollsWhileTheBackplateStaysAnchored) fails intermittently with "A visible partial-scroll interval is required for wash tracking." when the window is maximized between measuring the page and measuring the hero.User Impact
No user-visible change. Mock Gateway fixture shard B stops failing on this test.
Why This Change Was Made
OpenMainAutomationsAsyncrequests a maximize once and waits only for an element to exist. The wash proof then did three things in this order:SaveAutomationsWindow, which maximizes the window if it isn't maximized yet;If the earlier maximize had not taken effect, step 2 moved the page. The aperture then came from the restored window and the hero from the maximized one, so
hero.Top - aperture.Topdropped below the required interval. The failing CI capture shows the window maximized (-8,-8 1936×1048) with the hero at the top of the page. #2152 (fix(tests): Automations fixture tests time out selecting the app theme when Settings opens slowly) addressed only the theme selection.Changes:
ElementNotAvailableExceptionresets the samples.Evidence
SetWindowVisualState(Normal)at the start of the wash proof fails both themes with the exact CI message.Change Type
Scope
winnodeRequired proof pools
none: test-only change to a mock Gateway fixture UI test. CI runs it natively in fixture shard B.Validation
Local, head 0f055bc on main e9ed3ba, isolated
OPENCLAW_TRAY_*profile. Native runs held the exclusive native-desktop lock, and the real%APPDATA%and%LOCALAPPDATA%\OpenClawTraymetadata manifests were unchanged.A visible partial-scroll interval is required for wash tracking.(expected)scripts\validate-test-timing-patterns.ps1./build.ps1dotnet test ./tests/OpenClaw.Shared.Tests/OpenClaw.Shared.Tests.csprojdotnet test ./tests/OpenClaw.Tray.Tests/OpenClaw.Tray.Tests.csprojgit diff --checkHanselman dual review (Claude Opus 5.5 and GPT-6 Astra, high effort), with a delta re-review of the final head: no blocking issues.
Leftdisplay mode. The cause above replaces it.ElementNotAvailableException. Both models flagged the exception gap.ResetAutomationScrollAsync's existing assert. That helper is shared and left as is.Real Behavior Proof
dotnet test tests\OpenClaw.Tray.UITests -c Debug -r win-x64 -p:DevBuild=false --filter "FullyQualifiedName~Automations_HeroWashScrollsWhileTheBackplateStaysAnchored", with the fixture environment thatscripts\test-gateway-fixture.ps1sets.Security Impact
Yes, explain the risk and mitigation: N/ACompatibility and Migration
Review Conversations