Repository navigation
[release/11.0.1xx][tests] Backport offline WebView history fixture - #39791
Conversation
Retain only the three Issue30381 fixture paths from the existing owned correction in #39779 (7d49f3b), plus its isolated Catalyst bundle-path correction (a5ac338). Exclude the unrelated Cake diagnostic-path edit and all promotion/dependency changes. Keep HtmlWebViewSource and null BaseUrl, JavaScript navigation, the original 1s sleep, every navigation/status action and final oracle, and existing Android/Windows compile guards. Assert all five existing boolean waits without new waits or larger budgets. Managed client/source compiles and bundled-asset validation passed; servicing native acceptance is pending unchanged default CI. Source-commit: 7d49f3b (three fixture paths only) Source-commit: a5ac338 Source-session: d595bf0b-ce58-4118-be08-7fe144955a64 Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: c3054549-a47e-4ba8-8814-9944372281b0
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 39791Or
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 39791" |
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
🟡 Changes recommended
The new back-navigation assertions can time out after successful navigation because the status labels are not updated for the initial bundle URL.
1 open issue
What changed in this PR
Backports the offline Issue30381 WebView history fixture to release/11.0.1xx. This updates regression-test infrastructure for the existing history fix from #33183; it does not change product code.
Changes:
- Replaces external navigation with a bundled HTML document, using the MacCatalyst-specific asset path.
- Updates destination URL matching and asserts all five existing boolean wait results.
- Preserves platform guards, navigation actions, and test budgets without importing unrelated promotion changes.
| File | Description |
|---|---|
src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue30381.cs |
Asserts navigation-state waits and updates the navigation comment. |
src/Controls/tests/TestCases.HostApp/Resources/Raw/issue30381.html |
Adds a minimal offline navigation destination. |
src/Controls/tests/TestCases.HostApp/Issues/Issue30381.cs |
Uses the bundled destination, adjusts its Catalyst path, and updates URL matching. |
Review effort: Balanced
| void OnWebViewNavigated(object sender, WebNavigatedEventArgs e) | ||
| { | ||
| if (e.Url.Contains("github.com", StringComparison.OrdinalIgnoreCase)) | ||
| if (e.Url.EndsWith("/issue30381.html", StringComparison.OrdinalIgnoreCase)) |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
PureWeen
left a comment
There was a problem hiding this comment.
Adversarial review of exact head 36bfdc9cc4dcdd4bbc3cac35110595a93b7634ba, completed by 3 independent reviewers with adversarial consensus.
No additional actionable findings after accounting for the existing review feedback. The previously reported concern in discussion_r4434497921 was considered and not duplicated; its resolution status is unknown. This is not a clean bill of health.
The modified UI scenario exercises link navigation, Back, and Forward, and now asserts all five existing readiness-wait results. Native Apple runtime execution was not performed in this review.
Scope: code review only. CI/check status and merge readiness were not evaluated; use the repository's CI-analysis workflow for that assessment.
|
@dalexsoto stamp |

Note
Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!
Description of Change
This is an explicitly requested servicing backport, targeting
release/11.0.1xx, not a new alternative fix or a promotion merge. Commit36bfdc9cc4dcdd4bbc3cac35110595a93b7634bahas the exact servicing parentdf9c5fd8109abf9411146d2fe041a2d8967e64edfrom #39742.Retain the existing owned fixture correction from #39779:
TestCases.HostApp/Issues/Issue30381.cs,TestCases.HostApp/Resources/Raw/issue30381.html, andTestCases.Shared.Tests/Tests/Issues/Issue30381.csfrom source commit7d49f3b58650e187f06ce29f80d2a1744c6aef23; do not import that commit's unrelatedeng/devices/uitests-shared.cakeedit.a5ac3382e878da00bec8ac59bc56cd196122f5d2. The resulting three files are byte-identical to those retained owner blobs; original authorship and source/session provenance are recorded in the commit.Replace the external GitHub destination with a five-line bundled document, match the completed destination URL, and strictly assert all five existing boolean wait results. Catalyst changes only the anchor href to
Contents/Resources/issue30381.html, matching its actual bundled raw-asset location.Preserved: the initial
HtmlWebViewSourceand nullBaseUrl, JavaScript link click, original 1-second sleep, every navigation/status action and final assertion, existing Android/Windows compile guards, categories, case definitions, goldens, waits, and budgets. No dependency, promotion, runner, pipeline, project, or other follow-up changes. Exactly 3 files, +22/−11.Supported-target qualification
The unchanged full/default
maui-pr-uitestsdefinition 313 branch run 1658190 used the exact pushed source, without parameter, variable, category, matrix, configuration, or budget overrides. Each native lane's own checkout log confirms36bfdc9cc4dcdd4bbc3cac35110595a93b7634ba.Issue30381.WebViewCanGoForwardShouldHaveValueAfterNavigationpassed on the first execution in all three applicable default native lanes. No test/task retry was executed in these WebView lanes.macos-14image20260629.0276.1)latestlane), CoreCLRThe complete native catalogs and raw first-run case names match the servicing baselines exactly: Mac 47, iOS 53, not both 47 and not the owner's separate 49-case promotion catalog. The existing iOS
Issue1583_1_WebviewTestNotExecuted result remains explicit; this PR adds no skips and does not claim every unrelated existing test executed.The current servicing failure evidence was build 1658120/source
19f886dbca0dadd7bd70141fe5859a04b48ff7b8: Catalyst raw log 4626 showed the same 47-case catalog failing 46 Passed/1 Failed on both first execution and the stock retry, atApp.Tap("UpdateStatusButton"), test line 28, after external navigation, with a 45s Appium RPC timeout. Publication 4628/native run 46160090 agreed. Those fixture/runner paths are unchanged between that source and this backport's servicing parent. The separately bounded 15s diagnostic timeout is not an increased test budget. Earlier passing runs and the owner's receipts are not substituted for this backport's own native acceptance; no Catalyst ablation certification is claimed.Both actual compiled app members in this build's
ui-tests-samples-coreclrartifact 50872337 were downloaded and verified against the tracked asset: iOS.app/issue30381.htmland Catalyst.app/Contents/Resources/issue30381.html, each 130 bytes, SHA-256140056173bca657a3b6ccde00de0b4a1fb0b07ea419856ad7be61352784d728d. ExistingMauiAssetwildcard packaging is unchanged.Commands and local limits
Exact branch qualification command — successfully queued run 1658190; native WebView results are above, overall run failed for the residuals below:
Exact managed-only compile commands — both passed, 0 warnings/0 errors, using the already verified SDK 11.0.100/a586537b38:
The exact HostApp fixture also compiled against real managed MAUI assemblies with and without
MACCATALYST, each 0 warnings/0 errors. These local checks are not native HostApp certification. The SDK has no installed workloads; the required Apple SDK 27 toolchain is unavailable locally. No toolchain downgrade/bypass, physical Apple device, or local host-macOS XCTest execution was used. Native acceptance comes only from the actual CI receipts above.Remaining CI failures — not fixed or hidden here
Run 1658190 completed Failed at
2026-11-01T05:04:35Z; this is not an overall green-CI or merge-ready claim. All final non-successful jobs were inspected separately:VerifyShellSearch_CancelButtonColorandVerifyShellSearch_CharacterSpacingretain 0.76% visual differences;VerifyShellSearch_TextTransformUppercaseretains 0.70%. Those separate oracles/snapshots are the subject of owned follow-up [release/11.0.1xx][iOS, Windows tests] Align ShellSearch/tab-bar oracles and RefreshView return gesture #39783 and are untouched here.Issue17389.ValidateBackgroundColorDoesNotAffectInputTransparentbecause RedGrid tap count remained false. The unchanged full 193-case stock retry was canceled at the existing 180-minute job limit, with no completed retry summary. Publication 6063 retained the actual first-run failure; missing retry completion is not treated as a pass. Layout execution is a separate follow-up ([release/11.0.1xx] Shard Layout UI tests to reduce full-retry timeout risk #39786); neither that runner nor Issue17389 is changed here.Open/recent merged upstream and servicing fixture history were rechecked before publication; there is no servicing duplicate of this three-file correction. No fresh CI retry was queued to force green, no unrelated follow-up was imported, and no merge is requested by this qualification report.
Issues Fixed
Fixes the supported-target Issue30381 UI fixture timeout/ignored readiness assertions observed in servicing CI. Related to #30381; its original product history fix is already present from #33183. This is a fixture backport, not a new product fix or a reproduction-only PR.