Repository navigation
Unquarantine TempData cookie persistence test - #70261
Closed
BrennanConroy wants to merge 1 commit into
Closed
BrennanConroy wants to merge 1 commit into
BrennanConroy wants to merge 1 commit into
Conversation
The navigation race was fixed in #70088 by waiting for an element unique to the destination page. Restore the cookie-backed regression test to the normal test suite. Co-authored-by: Copilot <[email protected]>
Member
Author
|
Don't unquarantine tests, we have a process for that. |
3 of 4 tasks
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.
Fixes #70085.
Microsoft.AspNetCore.Components.E2ETest.Tests.TempDataCookieTest.TempDataPersistWithoutAccessingwas quarantined after intermittentStaleElementReferenceExceptionfailures atWebElement.Click()(5 distinct builds in the issue's deterministic 30-day snapshot).Root cause
The test runs with
PageLoadStrategy.None. Before #70088, it submittedset-values-not-readand immediately searched forredirect-button, an ID present on both the departing/tempdatapage and the destination/tempdata/redirect_without_readpage. Selenium could return the departing page's element while navigation was replacing that document, making the reference stale at click time.#70088 fixed the causal race by assigning the destination button the unique ID
redirect-without-read-buttonand waiting for that destination-only element withBrowser.Exists(...). The final TempData persistence assertion remains unchanged. This PR restores the cookie-backed test to the normal suite now that the causal fix is onmain.Validation
Microsoft.AspNetCore.Components.E2ETestsand its required product/test assets successfully before execution.git diff --checkpassed.CI status
All completed non-Components-E2E checks pass, including code check, source-build, platform tests, Helix subsets, quarantined tests, and template tests. Components E2E CoreCLR also passes.
Build Analysis attributes the two failed Components E2E jobs to unrelated existing flakes:
VirtualizationTest.VariableHeight_HtmlTable_DoesNotProduceNestedTrElementsfailed in Mono client/WebAssembly with an empty rendered collection; Build Analysis reports a 13.68% historical failure rate.ServerRoutingTest.NavigationLock_CanBlockExternalNavigationfailed in Mono server because navigation remained at/subdir/; Build Analysis reports a 31.10% historical failure rate.Neither test or subsystem is changed by this PR. A one-time GitHub check re-request was attempted for both jobs, but the Azure Pipelines integration rejected it with
403 Resource not accessible by integration; an authorized Azure rerun is required.After a full repository
npm run buildand targeted E2E rebuild at this exact head, both unrelated failing tests passed locally with Chrome/ChromeDriver 156:VirtualizationTest.VariableHeight_HtmlTable_DoesNotProduceNestedTrElements: passed.ServerRoutingTest.NavigationLock_CanBlockExternalNavigation: passed.Residual uncertainty
The original race is timing-dependent, so a finite local stress run cannot prove absence of every browser scheduling variant. The selector now cannot match the departing document, directly removing the stale-reference mechanism recorded in #70085.
🤖 Posted by Flaky (AI Agent)