Repository navigation
fix(test): own UI animation and legacy database setup - #138296
Conversation
Use the shared finite-animation fixture for opening replacement, interrupted closing, and navigation during property hide. DOM animationstart delivery can follow native completion, leaving the old tests outside the intended race. Preserve real running-state, focus, visibility and navigation assertions. Both complete browser files pass 49 cases in release and main contexts; three controlled dependency faults fail the intended assertions. No production behavior changes.
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs real behavior proof before merge. Reviewed September 4, 2026, 9:46 AM ET / 13:46 UTC. ClawSweeper reviewWhat this changesThe PR moves the dropdown CSS-animation holder into shared UI test support and uses it to exercise three submenu lifecycle assertions at a deterministic active animation frame. Merge readiness⛔ Blocked before merge - 3 items remain Keep this PR open. The focused test refactor replaces current main’s timing-sensitive Priority: P3 Review scores
Verification
How this fits togetherControl UI dropdown tests drive Web Awesome popovers through overlapping submenu opens and closes, then assert focus and visibility outcomes. The new shared helper pauses the native CSS animation at interior progress so lifecycle actions can be tested before completion. flowchart LR
A[Browser test] --> B[Submenu open or close request]
B --> C[Web Awesome CSS animation]
C --> D[Shared animation holder]
D --> E[Overlapping submenu action]
E --> F[Focus and visibility assertions]
Before merge
Agent review detailsSecurityNone. PR surfaceTests -1. Total -1 across 3 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the single shared native-animation holder and land it after a redacted browser-run trace demonstrates the three held submenu transitions complete with the expected focus and visibility assertions. Do we have a high-confidence way to reproduce the issue? Yes, source-reproducible: current main couples the intended races to delayed animationstart delivery, while the PR holds the real animation before performing those actions. The read-only review did not execute the browser suite. Is this the best way to solve the issue? Yes. Reusing the pre-existing native-animation holder at the affected lifecycle boundary avoids synthetic event timing and removes duplicated test support without changing production behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 068ef71bd20e. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
sylvesterkaczmarek
left a comment
There was a problem hiding this comment.
This is stronger than waiting on animationstart: it holds the real CSS animation at a finite interior sample, so the lifecycle assertions are about an actually running animation rather than event-delivery timing. Joining the captured open/close promises after the held action also avoids turning setup into a deadlock. Production animation timing remains untouched.
Create the legacy version-1 IndexedDB fixture on an inert same-origin page before the app can create its current database. Preserve actual upgrade, attachment recovery, reload and no-send assertions. Reproduce the original VersionError after the unchanged app opens v2; verify all 20 recovery and payload browser cases pass after the repair.
|
@clawsweeper re-review The body now includes captured native-browser output for all three held-animation cases and the linked full Linux run, plus direct installed Web Awesome source/hash verification. The final head also fixes the separate legacy IndexedDB fixture exposed by CI: seed genuine v1 before app boot. The exact VersionError has an ordered native reproduction; the complete recovery and payload browser suites pass 20/20, and the incremental changed gate and independent review are clean. Production and schemas are unchanged. Fresh CI is running on 1428931. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Merged via squash.
|
…9-prep * commit '407a8f453c0f0306af1ddc0aafa8697c1d49a9e7': (312 commits) perf(ui): coalesce automation event refreshes (#138065) fix: reject incomplete Skill Workshop directory reads (#138082) test(ui): decouple rendering checks from generated wording (#138283) perf: avoid temporary entries in bounded JSON traversal (#138017) fix(irc): render complete messages before splitting (#138328) perf: prepare worker trajectory payloads only for recorded events (#138086) fix(mcp): paginated listings no longer time out after a forward clock step (#137206) fix(codex): page native transcripts and bound UI previews (#136282) feat(gateway): apply more settings without restarting (#138112) fix(docs): preserve mirrored ClawHub maturity links (#138241) fix(test): own UI animation and legacy database setup (#138296) fix(tts): preserve literal directives in Markdown code (#138319) fix: load chat widgets behind authenticated gateways (#138074) chore(ui): cover native approval finalization (#137259) fix(cron): cancel conditions before main-session handoff (#138313) fix(backup): preserve text after embedded NUL characters (#138327) fix(android): align composer control sheets (#137442) fix(ci): wait for replacement PR runs instead of stale failures (#138307) fix(sessions): keep Gateway responsive with long transcripts (#138094) fix(computer): map window inputs to delivered image coordinates (#138271) ... # Conflicts: # scripts/release-check.ts # test/release-check.test.ts
* fix(test): hold submenu animations during lifecycle assertions Use the shared finite-animation fixture for opening replacement, interrupted closing, and navigation during property hide. DOM animationstart delivery can follow native completion, leaving the old tests outside the intended race. Preserve real running-state, focus, visibility and navigation assertions. Both complete browser files pass 49 cases in release and main contexts; three controlled dependency faults fail the intended assertions. No production behavior changes. * fix(test): seed legacy recovery database before app boot Create the legacy version-1 IndexedDB fixture on an inert same-origin page before the app can create its current database. Preserve actual upgrade, attachment recovery, reload and no-send assertions. Reproduce the original VersionError after the unchanged app opens v2; verify all 20 recovery and payload browser cases pass after the repair.
What Problem This Solves
Two UI fixtures could race the behavior they were meant to test. The dropdown owner test could receive
animationstartafter the finite animation had finished and throw before exercising sibling replacement. The attachment-recovery test booted the app before creating its legacy version-1 IndexedDB fixture, so the app could create version 2 first and make seeding fail withVersionError.The original failures are release UI CI and PR E2E shard 6/7. Both fixtures are shared by the release candidate and main. Neither failure establishes a production focus or storage regression.
Why This Change Was Made
Extract the existing
duringElementAnimationhelper into shared test support and reuse it in the three animation-sensitive owner cases. It holds a real finite CSS animation at interior progress with native running state; public submenu operation promises are joined after the held action. Existing focus, visibility and navigation assertions remain, including final focus after property hiding.Seed the legacy database on an inert document at the same origin before booting the app, using the existing payload-upgrade test pattern. Keep the explicit version-1 database and committed legacy attachment row, assert its version, then exercise real app upgrade, destination confirmation, attachment restoration, reload and zero sends. This removes the setup race without substituting current-schema data or altering production storage.
Evidence
VersionError. The repaired recovery and payload suites pass all 20 cases in their original file orders, including blocked upgrade, legacy draft/queue migration, reload, exact attachment bytes and no-send outcomes.The complete changed-file gate passed for the recovery repair, including UI E2E types, formatting, lint, i18n and all three dead-export scans. Its fresh managed P0–P2 review is clean with zero findings; unchanged animation files retain their byte-verified clean review and full-gate evidence. Recovery proof ran on macOS arm64 with Node 26.8.1, Vitest 4.1.11 and Playwright 1.62.1. Required hosted CI33883137819 passed on final head
1428931e748240c23373b259d428f6cbd8696461: 90 successful jobs, 14 intentional scope skips, zero failures/cancellations. Prior failed receipts remain unchanged.Inspectable Browser Proof
Captured output from the linked full Linux UI run, using
pnpm --dir ui test --testTimeout=30000 --isolateon Node 24.20.0 and real Chromium:The installed Web Awesome 3.12.0 dropdown-item, dropdown and animation helper modules were inspected directly. Public submenu methods await updates and return tracked animation promises; the animation helper waits for native completion before removing its class, and dropdown ownership retires before closing animation completes. Dependency-owner hashes match the reviewed source, main and Linux proof. This addresses the completed ClawSweeper review's requested trace and unavailable dependency checkout without a production workaround.
The shared IndexedDB owner and full draft recovery owner were inspected along with the original fixture history and sibling migration/blocked-upgrade tests. The version-1 setup contract remains explicit. Existing fixed-path outbox screenshot retention is a named test-harness follow-up; this task preserved each inspected proof in a separate evidence directory.
Selected captured lines from the final recovery/payload Chromium run on macOS (all 20 cases, no retry):
The ordered negative control waits for the unchanged app's native database version 2 before the original version-1 seed and fails with
page.evaluate: VersionError: The requested version (1) is less than the existing version (2).The final test removes that ordering hazard by seeding before app boot; it does not change the storage version or weaken the migration assertions.