Repository navigation
chat: finish image reveal tests without waiting for the real-time deadline - #342242
Merged
Alexandru Dima (alexdima) merged 1 commit intoOct 17, 2026
Merged
Conversation
…dline The animated generated-image layout tests already seek the reveal animations to their end, but then polled in real time until the reveal's ~4.5s deadline timer removed the `revealing` class. Finish the reveal through its reduced-motion cleanup instead, which runs the same effect cleanup as the deadline. The deadline path itself stays covered with virtual time in chatImageReveal.test.ts. The 10 animated cases drop from ~3.5-3.9s to ~60ms each. Co-authored-by: Copilot <[email protected]>
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No unresolved issues remain in this focused test-only change; layout assertions and separate deadline coverage are preserved.
No open issues 🎉
What changed in this PR
Speeds up generated-image layout tests by completing reveal cleanup without waiting for the real-time deadline.
Changes:
- Adds a controllable reduced-motion event to the accessibility stub.
- Replaces deadline polling with synchronous cleanup, preserving layout assertions and separate deadline coverage.
| File | Description |
|---|---|
| src/vs/workbench/contrib/chat/test/browser/widget/chatListRenderer.test.ts | Finishes animated reveals through reduced-motion cleanup instead of real-time polling. |
Review effort: Balanced
Contributor
Alexandru Dima (alexdima)
marked this pull request as ready for review
October 17, 2026 09:27
Alexandru Dima (alexdima)
enabled auto-merge (squash)
October 17, 2026 09:27
4 of 6 tasks
Ladislau Szomoru (lszomoru)
approved these changes
Oct 17, 2026
Alexandru Dima (alexdima)
deleted the
agents/test-perf-chat-image-reveal
branch
October 17, 2026 10:14
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The animated generated-image layout tests already seek the reveal animations to their end, but then polled in real time until the reveal's ~4.5s deadline timer removed the
revealingclass. Finish the reveal through its reduced-motion cleanup instead, which runs the same effect cleanup as the deadline. The deadline path itself stays covered with virtual time in chatImageReveal.test.ts.The 10 animated cases drop from ~3.5-3.9s to ~60ms each.
Part of a series that speeds up unit tests waiting on real time, found from the slow tests in the Linux Electron unit test job. Each change is a separate PR so it can be reverted on its own. Test files only; no assertions changed.
How to test
Results on macOS, with only this commit applied on top of 832a728:
./scripts/test.sh --run src/vs/workbench/contrib/chat/test/browser/widget/chatListRenderer.test.ts: 837 passing (14s), 1 pending