Repository navigation
[test-quarantine] Stabilize Virtualization Home/End test assertions - #69172
Merged
ilonatommy merged 4 commits intoSep 10, 2026
Merged
Conversation
Contributor
|
Thanks for your PR, @vendasankarsf3945. Someone from the team will get assigned to your PR shortly and we'll get it reviewed. |
vendasankarsf3945
marked this pull request as ready for review
September 9, 2026 12:09
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The change is isolated to E2E test logic and uses existing stabilization helpers; only a minor assertion-message clarity nit was identified.
Pull request overview
This PR stabilizes a previously quarantined Blazor Virtualize E2E test by reducing timing sensitivity around Home/End keyboard navigation after a variable-height expansion, then removes the quarantine marker once the assertions are made more robust.
Changes:
- Removed the
[QuarantinedTest]attribute from the affected theory. - Added
WaitForRenderToSettle(...)calls around Home/End navigation to allow async rendering/scrolling to stabilize. - Updated the post-Home assertion to validate via
GetTopRenderedIndex(js) == 0rather than DOM presence of a specific item element.
File summaries
| File | Description |
|---|---|
| src/Components/test/E2ETest/Tests/VirtualizationTest.cs | Stabilizes the flaky virtualization Home/End test by waiting for render cycles to settle and using a less timing-sensitive assertion, then un-quarantines the test. |
Review details
- Files reviewed: 1/1 changed files
- Comments generated: 0
- Review effort level: Lite
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
ilonatommy
enabled auto-merge (squash)
September 9, 2026 12:14
This was referenced Nov 23, 2026
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.
Stabilize Virtualization Home/End test assertions
Description
This change addresses the intermittent failure in:
Microsoft.AspNetCore.Components.E2ETest.ServerExecutionTests.ServerVirtualizationTest.InitialIndex_RetainsTargetWhenPreviousItemExpandsThenHomeEndTakeOverThe failure was caused by timing-sensitive virtualization behavior after expanding an item and subsequently using the Home/End keys. In rare cases, the test asserted the expected item before the virtualization system had fully updated the rendered content, resulting in a flaky failure.
Changes made
Validation
Fixes #68772