Skip to content

[release/11.0.1xx][iOS, Windows tests] Align ShellSearch/tab-bar oracles and RefreshView return gesture - #39783

Closed
kubaflo wants to merge 45 commits into
release/11.0.1xxfrom
kubaflo-windows-shellsearch-repair
Closed

kubaflo wants to merge 45 commits into
release/11.0.1xxfrom
kubaflo-windows-shellsearch-repair

Conversation

@kubaflo

@kubaflo kubaflo commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

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 explicitly requested servicing fixture/oracle follow-up to #39742 targets release/11.0.1xx. The seven-file diff contains Windows ShellSearch assertions/three goldens, the one-line Windows RefreshView return gesture, and an iOS floating-tab-bar content-boundary assertion/native golden. No product code, SDK dependency, pipeline configuration, quarantine, test count, screenshot tolerance, or screenshot retry budget is changed.

Windows ShellSearch: #39742's native focus-ownership repair correctly reports keyboard focus and FocusStatus=Focused after typing. Three older goldens incorrectly expected an empty focus label. Each revised Windows golden changes exactly 195 focus-label pixels, preserving every search glyph, CharacterSpacing caret pixel, and orange cancel-icon pixel. A single immediate strict FindElement("FocusStatus")?.GetText() == "Focused" check runs after the unchanged full screenshot. There is no added After or WaitForElement focus-readiness allowance before the existing 0.5%/2-second visual oracle; missing/non-Focused telemetry fails directly.

CancelButtonColor and TextTransformUppercase preserve authorship and -x provenance from isolated commits cd7a8cb8a21c8d798c9588da7ec86a3ae54379df and 691808743d1b3915c9af359c9a37dae0588f51c2 in #39779 (net11.0). Mixed promotion ancestors are not imported. Source a7a065d0597357accfc99af3c75c0fbe7c630287 was reconciled with its tree-identical release squash merge df9c5fd8109abf9411146d2fe041a2d8967e64ed by a normal merge, without history rewriting.

CharacterSpacing remains enabled on Windows. The exact unchanged repository MagickNetVisualComparer/Magick.NET-Q8-AnyCPU 14.15.0 uses RootMeanSquared, Channels.Red, threshold 0.005. Original golden versus retained caret-visible native capture rejects at 0.007613310451512228; the focus-only correction versus that same capture accepts at 0.0026702701481116134. These are actual Magick comparisons, not pixel-count/Python RMS proxies. The 21 caret-column pixels need no mask, crop, replacement, tolerance increase, or additional retry budget.

Windows RefreshView: Issue18896 reuses the existing Android 90% upward gesture instead of the default symmetric return gesture. Original UIA reports residual VerticalScrollPercent=1.27906976744186 and an approximately 10-pixel row offset. The one-line correction preserves action count, original golden, and 5-second screenshot budget. Open main PR #38822 instead uses native-position assertions and up to three return gestures; that broader correction is absent from this servicing target and is not imported.

iOS floating tab bar: after unchanged full VerifyScreenshot(), require the actual Tab1Label content-parent bottom to equal the native tab-bar bottom on iOS 26+. The guard reads and parses real platformVersion; missing/invalid metadata fails. Original AX verifies content (0,98,375,714) and bar (0,729,375,83), both ending at 812: the selector is the content subtree, not a window proxy. No new readiness loop is added; MacCatalyst behavior is unchanged.

The iOS golden is the exact source-3164 native PNG from run 46150144, result 100138, attachment 11, SHA-256 cb4332f344131e5b73f71c79b08c6f481d95fef50505d7c4282dee181ec54e50. Differences from the old image are restricted to tab-bar/bottom bounds (171,1990)-(957,2286); headers, text, and purple body are identical. Independent MAUI-free UIKit/default-tab-bar source and Mach-O provenance verify IOSSIMULATOR SDK 26.5. Existing 110-pixel top/40-pixel bottom crops map UIKit raw (800,2260) RGB (215,198,251) to MAUI snapshot (800,2150) RGB (215,198,249), versus old pink (251,225,255). Exact repository comparison rejects old versus native at 0.016602991803939877; the supplied new native image matches at 0. This is an appearance/oracle correction, not a production clipping or tint fix.

Appearance variance and retries remain explicit: unchanged e612, raw iOS log 4530, first run 144 = 137 Passed + 1 Failed + 6 existing skips fails this case at 1.66%; stock suite retry 144 = 138 Passed + 0 Failed + 6 existing skips passes the unchanged case in 457 ms. Both use iPhone 11 Pro/iOS 26.5. Native default-color evidence alone does not establish universal stability. This PR was qualified on its actual new source's first NUnit execution under the existing screenshot behavior, not by refreshing until green or adding waits/masks/tolerances/retries. Intrinsic screenshot retry usage is not separately logged and is not claimed absent.

Native acceptance of published source

Source 19f886dbca0dadd7bd70141fe5859a04b48ff7b8, UI build 1658120, passes all five exact targeted cases on first NUnit runs, with complete untruncated result sets:

Native case Run / result Actual outcome
iOS content extends under floating tab bar 46159292 / 100102 Passed, 820 ms
Windows CharacterSpacing 46159378 / 100152 Passed, 6494 ms
Windows CancelButtonColor 46159378 / 100155 Passed, 6033 ms
Windows TextTransformUppercase 46159378 / 100191 Passed, 6416 ms
Windows Issue18896 46159160 / 100001 Passed, 4444 ms

The iOS first run is 144 = 138 Passed + 6 existing NotExecuted + 0 Failed, raw execution 4076 (2382 complete lines), publisher 4093. Actual iPhone 11 Pro/iOS 26.5 and Xcode 26.5 are logged; the full native golden and immediate strict content/tab-bar equality pass. There is only one NUnit case execution/total summary, no stock suite retry. Raw Retrying 3 times occurs during simulator shutdown/delete teardown, not tests.

Windows Shell2 is 197 = 184 Passed + 13 existing NotExecuted + 0 Failed, raw execution 4267 (1218 complete lines), publisher 4269, no suite retry. The three strict post-screenshot focus assertions preserve the original 0.5%/2-second visual deadline. RadioButton/RefreshView is 58/58 Passed, raw 3714 (782 complete lines), publisher 3716, no suite retry; the original golden/5-second budget is unchanged. Exact native scroll percentage is not inferred from visual acceptance.

Earlier e612 also passed the four Windows cases in runs46154002/46153510; that evidence was not substituted for this final-source validation. Source publication waited until each preceding cohort/recovery was terminal. Main 1658119 succeeded; missing full/default UI/device matrices were each requested once without restarting auto-running main. No new pipeline exclusion or default-matrix reduction was introduced.

Complete device inventory — not global green certification

Final-source device build 1658121, merge e9613cc896584d61abf0268341cf57ebf05e6311, has the exact 19f pr.sourceSha. All nine Helix IDs were harvested from its own complete raw Run DeviceTests logs, including green legs. The complete inventory covers 62 terminal real work items, but only 61 measurable result sets: 43,807 measured tests = 42,595 Passed + 1,212 existing skips, zero measured failed tests/XML errors.

The remaining Windows MauiBlazorWebView.DeviceTests-unpackaged work item 010698d4-b045-4229-8ea4-387e5f09d233, machine a000FSW, reaches the two-hour workload timeout, is killed, and terminates with exit -3. It uploads console only, no recognized result XML. Its test measurements and whole-run total/passed/failed/skipped counters remain unavailable/null, not zero. The strict guard and complete inventory both reject this execution; the failed pipeline is not certified green. This is outside the fixture patch and remains with the broader CI investigation.

Prior evidence is preserved rather than erased: 3164 device1657739 had a complete 43,850-test inventory with two genuine failures (HybridWebView lifetime and packaged Core iframe-fetch timeout); e612 device1657907 had 61 measured sets plus an unavailable packaged-Blazor timeout. Later passes of unchanged product tests are not represented as causal repairs by these fixture changes.

Validation: exact repository Magick comparisons above completed successfully. dotnet format whitespace --folder --include src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/ShellSearchHandlerFeatureTests.cs src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue18896.cs --exclude Templates/src --verbosity quiet passed, with unrelated pre-existing whitespace preserved. dotnet format whitespace --folder --include src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue35490.cs --exclude Templates/src --verbosity quiet passed. git diff --check origin/release/11.0.1xx...HEAD passed. Native CI, not this macOS host's managed compilation, supplies the runtime acceptance.

The PR remains draft for wider CI failures. The seven-file fixture repair/native qualification and honest source audit are complete. Broader Android deployment/test failures, Catalyst failures, and the resultless Blazor timeout are not represented as fixed or green. The coordinating investigation owns those remaining blockers; no merge approval is implied.

Issues Fixed

Corrects fixture/oracle failures retained by #39742. CharacterSpacing's #35624 reference is retained without claiming its other-platform product behavior is fixed. Issue18896 stays active with its original golden. Issue35490 adds a strict content-boundary oracle and qualifies native-default iOS appearance; this is not a new product clipping/tint change.

HarishwaranVijayakumar and others added 30 commits October 28, 2026 19:41
….1xx-7d4af78ab4e551b22c4bd42791365243081c04a4-1

On relative base path root
Microsoft.Android.Sdk.Windows From Version 37.2.24 -> To Version 37.2.28
…028.31

On relative base path root
Microsoft.MacCatalyst.Sdk.net11.0_27.0 , Microsoft.macOS.Sdk.net11.0_27.0 , Microsoft.tvOS.Sdk.net11.0_27.0 From Version 27.0.12230 -> To Version 27.0.12267
Retain Android 37.2.28 while deferring the Apple SDK update requiring unavailable Xcode 27.1. Restore coherent Apple versions and source SHAs so framework, sample, and shared UI/device builds can run every configured stage. Remove the unused Apple feed and duplicate VMR feed entries.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 8095f925-4a70-4d95-9e63-cd33cd5e4cd0
Reuse the independently validated upstream image with its original commit and author, rather than generating a competing fix. The Material3 toolbar is correct; the baseline was cropped with a different status-bar offset.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 8095f925-4a70-4d95-9e63-cd33cd5e4cd0
Replace Appium's ESC/BACK fallback with one ESC and explicit keyboard and dialog-state checks. Keep the original styling snapshots and tolerances.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Backport-of: 38c7492
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 8095f925-4a70-4d95-9e63-cd33cd5e4cd0
Remove the three obsolete Ignore attributes referencing closed issue #19883. Replay all three cases against the exact CI Material3 app: custom track/thumb colors and toggle states pass, and unchanged snapshots differ by 0.154934%, 0.154809%, and 0%, below the existing 0.5% tolerance. Keep method bodies, baselines, categories, and assertions unchanged.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 8095f925-4a70-4d95-9e63-cd33cd5e4cd0
Remove unrelated indentation churn introduced by the repository formatter. Relative to the pre-fix file, only the three validated Ignore removals remain.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 8095f925-4a70-4d95-9e63-cd33cd5e4cd0
Allocate collectable entries in a non-inlined helper before entering the collection wait. Windows Release Helix work item 3ede0869 reported ObjectsAreEvicted_GetEnumerator retaining its target; Debug and both macOS work items passed. Apply the same lifetime-isolated setup to all three eviction tests without changing collection budgets or assertions.

Validation: complete Core suites pass in Release and Debug (1074 passed, 3 existing skips each); all three WeakList cases pass ten separate Release runs (30 passed, zero skipped). An external strongly rooted negative control still fails the unchanged assertion, and the restored real suite passes.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 8095f925-4a70-4d95-9e63-cd33cd5e4cd0
Stop simulated downloads at exactly one instead of relying on an unreachable floating-point equality, and stop header/footer updates when all downloads complete. Preserve asynchronous updates during navigation and all ten push/pop cycles.

Use existing W3C pointer input on Catalyst so this deliberately active fixture does not block on native element-click idle detection. Verify the last pop returns to the first page. Existing wait budgets and assertions remain intact.

Validation: official Android HostApp runner built/deployed fresh sources and executed Bugzilla57910Test successfully (1 passed, 0 skipped, ten cycles, 3m20s). Exact C# arithmetic control confirms the old value is 1.0000000000000002 after 20 ticks and the corrected value is 1. Catalyst runtime confirmation remains pending in CI.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 8095f925-4a70-4d95-9e63-cd33cd5e4cd0
Reuse the predicate-based readiness correction from closed PR #39162, adapting it to the release branch's existing Shell shard. The element remains present while rotation layout changes, and NUnit 4 records transient assertion failures even when RetryAssert later succeeds.

Keep the default readiness deadline, all three original width assertions/tolerances, category, and platform guards. Reacquire geometry during both transitions and restore portrait in finally. Current failed-case teardown already shows the correct 343-point width; matching NUnit 4.0.1 controls confirm caught transient assertions fail while predicate readiness passes.

Validation: official Android HostApp runner executed the exact ShellTitleViewResizesOnRotation contract successfully with valid passing TRX; targeted format and diff checks pass. iOS CI efficacy remains pending, not inferred from Android.

Backport-of: e33edd4
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 8095f925-4a70-4d95-9e63-cd33cd5e4cd0
Backport the CI-only cache correction already validated in #39600. Give non-elevated driver installs and updates a checkout-local cache, separate from potentially elevated global Appium installation and shared image cache ownership.

Preserve local provisioning, installation versions, error propagation, tests, and existing retry limits. Do not delete or chown shared caches or elevate driver installation. Retain this release branch's CI facts and add only the applicable cache documentation.

Validation: provisioning XML parses; both driver Exec operations receive the isolated environment; MSBuild project evaluation and npm cache override configuration succeed. Existing duplicate Versions.props warning is unchanged. No pipeline/configuration tests added or modified; current-branch actual CI remains pending.

Backport-of: 405e7f3
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 8095f925-4a70-4d95-9e63-cd33cd5e4cd0
Reuse the exact test-file correction from merged #38665. Current API 36 CI records transient caught assertions as failures even after the geometry converges and the test restores all safe-area edges. NUnit 4 retains these assertion failures; keyboard visibility alone is not completed inset layout.

Use NUnit's delayed constraints with the same 15-second deadline and 500ms polling. Preserve keyboard show/hide checks, strict keyboard shrinkage, and both one-pixel restoration bounds. No quarantine, platform/category changes, timeout/tolerance increases, or global helper rewrites.

Actual official Android API 36 Pixel 3 XL validation: all five ContentPage tests passed, zero failed/skipped; authoritative TRX retained. Matching NUnit 4.0.1 controls confirm caught transient assertions fail, delayed transient height/geometry succeeds, and permanent violations of either restored coordinate still fail. Targeted whitespace formatting and diff checks passed. Original CI failure retained in 1654846/46056890. No pipeline-configuration tests added or modified.

Backport-of: 0d1ea17 (test-file portion)
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 8095f925-4a70-4d95-9e63-cd33cd5e4cd0
….1xx-6d4cadfefbeab3fb1bab7a13b968833799fc7c48-1

On relative base path root
Microsoft.Android.Sdk.Windows From Version 37.2.24 -> To Version 37.2.29
…029.2

On relative base path root
Microsoft.MacCatalyst.Sdk.net11.0_27.0 , Microsoft.macOS.Sdk.net11.0_27.0 , Microsoft.tvOS.Sdk.net11.0_27.0 From Version 27.0.12230 -> To Version 27.0.12269
Preserve Maestro's new Android 37.2.29 update and both bot commits. The newly flowed Apple 27.0.12269 build comes from 01cf76bb, whose Make.config explicitly requires Xcode 27.1. The validated CI image has Xcode 27.0/26.6, so restore coherent Apple 27.0.12230 versions/source SHAs rather than letting shared builds block downstream tests again.

Remove the unused new Apple feed and the two duplicate VMR source entries reintroduced by flow. Retain both distinct new Android feeds. XML parses, NuGet source keys are unique, and the actual owned Android workload was upgraded to 37.2.29 for local runtime validation. No Xcode-check bypass or pipeline/test suppression. Full new-head CI remains pending.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 8095f925-4a70-4d95-9e63-cd33cd5e4cd0
The routing fixture dispatches native accessibility clicks to static-text descendants, while its contract concerns parent gesture routing. Use the existing W3C pointer helper on Catalyst; other platforms keep native input. Wait for each enabled click's observable count and for the transparency state before the disabled phase. Preserve all eight clicks, the original final 4/0 checks, visual assertions, categories, and default deadlines.

Official Android 37.2.29/API30 validation executed both existing tests: 2 passed, 0 failed/skipped; authoritative TRX retained. The changed routing case also passed API36; its unchanged visual peer has no API36 baseline, so that missing-oracle result is not claimed green. Targeted whitespace formatting passed. Catalyst compilation is covered, but efficacy is explicitly pending the next actual Mac CI run, not inferred from Android. No production or global helper change.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 8095f925-4a70-4d95-9e63-cd33cd5e4cd0
Shell sharding added ClearIcon query cleanup and updated Android/iOS snapshots, but omitted these three Mac baselines. They still expected an A leaked from the preceding test. Keep the cleanup and align only the three full-size Mac images with the intended cleared-query state, after inspecting calculator/bank/default native icons and labels.

Use original PNG bytes from actual current-head CI run 46067158, not edited images or masks. All dimensions remain 789x563; test code, cropping and comparer thresholds are unchanged. The repository's exact default Magick.NET comparer rejects the stale baseline and accepts the corrected baseline against all six captures across two independent CI workers. This captured-frame replay is not a claim that a new full runtime CI run has passed. Document the cross-platform cleanup invariant; full new-head CI will validate publication.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 8095f925-4a70-4d95-9e63-cd33cd5e4cd0
Integrate target 8c3ee4 normally to resolve the merge-conflict gate that was preventing maui-pr from starting. Reuse its existing App.TapElement coordinate-input fix and scoped counter waits instead of our duplicate private helper, retaining stronger per-click 1/2/3/4 checks and the original final 4/0 contract.

Do not import the target's new TEST_FAILS_ON_CATALYST wrapper around Issue35736: the requested fix must keep all four icon cases running. Retain the proven query-cleanup snapshot correction rather than quarantine the class. No test categories, counts, timeouts, tolerances, or production code are weakened.

After resolution, official Android37.2.29/API30 execution confirms both existing routing/visual cases passed, zero failed/skipped; authoritative TRX retained (6.613s/5.589s). Formatting/diff checks passed. All four SearchHandler methods remain compiled without the Catalyst class guard; actual Mac efficacy and complete new-head CI remain pending. Normal merge preserves both dependency-bot commits and target history; no rebase or force-push.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 8095f925-4a70-4d95-9e63-cd33cd5e4cd0
Two final-head iOS shards failed before tests while a depth-one checkout still fetched all tags: over 450 MiB/153945 objects before early EOF and unusable credential retries. The same large-checkout pattern previously exhausted an integration lane's checkout budget.

Use an explicit depth-one, tag-free self checkout for UI execution and disable tag fetching on the existing integration setup checkout. Keep build/sample/pack versioning checkouts, requested commits, test matrices, categories, authentication, and timeouts unchanged. These execution jobs consume already-built artifacts and have no direct release-tag consumers.

Validation: both YAML files parse with the existing Ruby YAML parser; git diff checks pass; source/consumer and existing fetchTags:false prior art inspected. No pipeline/configuration tests added or modified. Actual CI must verify --no-tags checkout and nonempty recovered shard execution; no unmeasured speed or green-run claim.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 8095f925-4a70-4d95-9e63-cd33cd5e4cd0
After the single bounded Windows recovery, Essentials and Graphics still fail Add-AppxPackage before tests (0x80073CF0/0x80070003). The actual Core app/framework ZIP CRCs and SHA256 block maps are intact, and unchanged Core/Blazor packages recovered on other workers. Do not retry blindly or claim this establishes the native deployment cause.

The existing failure dump selects the last unsorted records and prints October 11 image events instead of the current failure. Log registered WindowsAppRuntime locations/status/manifest presence, then explicitly sort deployment events newest-first. Keep installation arguments, certificates, test execution, and the original nonzero failure unchanged.

Validation: parsed the actual embedded PowerShell command with the existing PowerShell parser, zero syntax errors; git diff checks passed. No pipeline/configuration tests added or modified. This is diagnostic-only, not a deployment fix or native Windows runtime certification; actual next-head CI must supply the missing causal detail.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 8095f925-4a70-4d95-9e63-cd33cd5e4cd0
The tag-free checkout completed successfully, but UI tool restore then failed creating /Users/cloudtest/.dotnet/10.0.100.toolpath.sentinel in the image-owned user home. The same permission failure occurred on an earlier run; the existing first-time-experience flag does not avoid this write.

Initialize DOTNET_CLI_HOME in the agent's job-local temporary directory before provisioning, and persist it as a job variable for all later CLI processes. Tool restore and subsequent commands must share their resolver cache. Do not change HOME, SDK roots, ownership, authentication, test selection or timeouts. Avoid generating an unrelated ASP.NET development certificate during bootstrap.

Validation: YAML parses; the actual embedded initializer parses as PowerShell; diff checks pass. A fresh owned CLI home created its toolpath sentinel, restored the missing local-tool resolver cache, and a separate subsequent process successfully ran Cake 4.0.0 with the same home. No pipeline/configuration tests added or modified. Actual CI SDK10 bootstrap and nonempty recovered UI execution remain pending, not inferred from the local SDK11 probe.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 8095f925-4a70-4d95-9e63-cd33cd5e4cd0
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 8095f925-4a70-4d95-9e63-cd33cd5e4cd0
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 8095f925-4a70-4d95-9e63-cd33cd5e4cd0
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 8095f925-4a70-4d95-9e63-cd33cd5e4cd0
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 8095f925-4a70-4d95-9e63-cd33cd5e4cd0
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 8095f925-4a70-4d95-9e63-cd33cd5e4cd0
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 8095f925-4a70-4d95-9e63-cd33cd5e4cd0
Use the net10.0_27.0 child packages declared by the retained macios parent, including their matching versions, source SHA, MSBuild properties and feed. Preserve all coherent-parent relationships and the Xcode 27.0 requirement.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 8095f925-4a70-4d95-9e63-cd33cd5e4cd0
Route this fixture's physical clicks through the actual XCUIElement instead of Mac2's absolute-coordinate application proxy. Keep existing absolute-coordinate callers unchanged, remove the ineffective activation call, and preserve all eight actions and strict counter assertions. Managed build and transport regression controls pass; native gesture efficacy requires CI validation.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 8095f925-4a70-4d95-9e63-cd33cd5e4cd0
@github-actions

Copy link
Copy Markdown
Contributor

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 39783

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 39783"

@azure-pipelines

This comment has been minimized.

@kubaflo

This comment has been minimized.

@kubaflo
kubaflo temporarily deployed to copilot-pat-pool October 31, 2026 13:35 — with GitHub Actions Inactive
@azure-pipelines

This comment has been minimized.

@kubaflo
kubaflo temporarily deployed to copilot-pat-pool October 31, 2026 13:36 — with GitHub Actions Inactive
@kubaflo
kubaflo temporarily deployed to copilot-pat-pool October 31, 2026 13:37 — with GitHub Actions Inactive
@kubaflo
kubaflo temporarily deployed to copilot-pat-pool October 31, 2026 13:39 — with GitHub Actions Inactive
@kubaflo
kubaflo temporarily deployed to copilot-pat-pool October 31, 2026 13:40 — with GitHub Actions Inactive
Read FocusStatus strictly and immediately after the state-aligned screenshot. Remove the separate2-second NUnit readiness poll and the implicit15-second missing-element wait before the existing2-second visual oracle. Missing or non-Focused telemetry fails the direct assertion; no retry, tolerance, golden or case-count change.

The prior source3164ca318663c034aa2146bcd6228d0cb027814a passed all4 native Windows cases, but those durations did not certify this budget invariant. Native qualification of this ordering correction is still required. Publication is intentionally held until the prior source's active runs finish, as requested.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: ef0164cb-e18a-4971-939e-635e8bc1fef6
@kubaflo

This comment has been minimized.

@kubaflo

This comment has been minimized.

@azure-pipelines

This comment has been minimized.

1 similar comment
@azure-pipelines

This comment has been minimized.

Reuse the exact source3164 native screenshot (SHA256 cb4332f344131e5b73f71c79b08c6f481d95fef50505d7c4282dee181ec54e50) after independent UIKit-only iOSSimulatorSDK26.5 provenance confirms its default lavender appearance. No product clipping or tint change is claimed.

After the unchanged full screenshot, require the actual Tab1Label content-parent bottom to equal the native tab-bar bottom on real iOS26+ platformVersion. Missing or invalid metadata fails; no additional readiness poll, wait, screenshot crop/tolerance/budget or exclusion is introduced. Original native AX places content at98+714=812 and tab bar at729+83=812. Native qualification of the new geometry assertion is still required; publish only after the e612 cohort finishes.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: ef0164cb-e18a-4971-939e-635e8bc1fef6
@kubaflo

This comment has been minimized.

@kubaflo

This comment has been minimized.

@azure-pipelines

This comment has been minimized.

1 similar comment
@azure-pipelines

This comment has been minimized.

@kubaflo kubaflo changed the title [release/11.0.1xx][Windows tests] Align ShellSearch focus oracles and RefreshView return gesture [release/11.0.1xx][iOS, Windows tests] Align ShellSearch/tab-bar oracles and RefreshView return gesture Oct 31, 2026
kubaflo added a commit that referenced this pull request Nov 3, 2026
…ness fixtures (#39784)

<!-- Please let the below note in for people that find this PR -->
> [!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](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

<!--
!!!!!!! MAIN IS THE ONLY ACTIVE BRANCH. MAKE SURE THIS PR IS TARGETING
MAIN. !!!!!!!
-->

### Description of Change

<!-- Enter description of the fix in this section -->

Two surgical **test-fixture corrections**, targeting `release/11.0.1xx`
explicitly as a servicing follow-up to #39742:

- For non-Windows `HandlerDoesNotLeak(HybridWebView)`, create and
disconnect the real native handler in a synchronous
`[MethodImpl(NoInlining)]` helper that returns only the existing three
weak references. Retain the 1000ms pre-handler delay, native handler
creation/disconnection, `HybridRoot = "HybridTestRoot"`, `view.Handler =
null`, and unchanged `WaitForGC` assertions/all 40 cycles. The Windows
WebView2 initialization path is unchanged.
- For `CrossOriginIframeFetchOfAppDirResourceIsDenied`, observe the
parent URL/navigation-ID-matched `CoreWebView2.DOMContentLoaded` event
rather than an unfiltered navigation-completed event. Retain the 10s
readiness and 8s title budgets, public `IWebViewDelegate.LoadUrl`,
actual opaque-origin iframe/fetch, and the same
`"child:denied"`/DenyCors assertion. Remove both event subscriptions in
`finally`.

No production code, quarantine/skip additions, extra GC, post-creation
waits, enlarged budgets, or pipeline/matrix changes. This does not
include or alter the Windows UI-test changes in #39783.

**Native qualification:** source
`b7c2493b09c3c9a1a9bee82b293556cf0feadca0`, unchanged full/default
`maui-pr-devicetests` (314), [build
1657813](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1657813).

All **9 native Helix jobs / 62 actual XML results** are complete:
**43,850 total; 42,634 passed; 0 failed; 1,216 existing skips; 0 error
nodes**. The original [build
1657739](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1657739)
had the same total/skip counts with two failures. Job identities were
correlated from this build's own raw Azure logs; XML declared counts
were checked against actual test/error nodes.

All **22 existing HybridWebView leak cases passed**: all three inherited
Memory fixtures on each iOS Mono/CoreCLR and Catalyst queue
(osx15/osx26), plus Android Mono/CoreCLR and unchanged Windows
packaged/unpackaged cases. On the originally failing iOS Mono osx26
lane, Base/Flyout/Tabbed passed in **1.3528471s / 1.3395299s /
1.3023115s** on `dci-macm2-build-014`; [actual
XML](https://helix.dot.net/api/jobs/b563a16a-f579-4699-b719-bfc937480652/workitems/Controls.DeviceTests-General/files/testResults.xml?api-version=2019-06-17).
Console evidence confirms `ios-simulator-64`, not physical Apple
execution.

The exact cross-origin iframe case passed on both real Windows
deployments: **packaged 3.6474163s** (`a000OQF`) and **unpackaged
3.4842413s** (`a000OU2`); [packaged
console](https://helix.dot.net/api/2019-06-17/jobs/89fd1e11-0951-4443-893f-7f58c61f47b5/workitems/Core.DeviceTests-packaged/console),
[unpackaged
console](https://helix.dot.net/api/2019-06-17/jobs/89fd1e11-0951-4443-893f-7f58c61f47b5/workitems/Core.DeviceTests-unpackaged/console).

**Subsequent post-PR validation (red):** unchanged full/default
`maui-pr-devicetests` (314), [build
1657980](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1657980),
completed **failed**. It ran `refs/pull/39784/merge` at merge SHA
`f08f75adb72d4a6870eb59d63a41dda310a1471f`, with
`triggerInfo.pr.sourceSha = b7c2493`.
The merge tree is identical to the earlier qualified head.

All **9 native Helix jobs / 62 actual XML results** are complete:
**43,850 total; 42,632 passed; 2 failed; 1,216 unchanged skips; 0 error
nodes**. This run's own raw Azure send logs correlate all nine job
GUIDs; XML declared counts match actual test/error nodes. Exact skip
identities match the earlier run in all 62 work items. The two failures
are in unchanged test methods:

- **iOS Mono, osx26:**
`MemoryTests_TabbedViewHandler.PagesDoNotLeak(type: typeof(ContentPage),
includeNavigationViewHandler: true)` failed in **5.3669613s** because a
native `Microsoft.Maui.Platform.ContentView` remained alive after the
existing GC observation. This is a **ContentPage/native-view retention
assertion**, not the modified `HandlerDoesNotLeak(HybridWebView)` case.
Work item `Controls.DeviceTests-General`, job
`52f0de98-5629-4da2-bc40-6848a76f9254`, machine `dci-mac-build-477`,
exit 1; **1,169 total / 1,154 passed / 1 failed / 14 skipped / 0
errors**. [Native
console](https://helix.dot.net/api/2019-06-17/jobs/52f0de98-5629-4da2-bc40-6848a76f9254/workitems/Controls.DeviceTests-General/console)
confirms a normally completed `ios-simulator-64` test run with
`TESTS_FAILED`, not a missing-result fallback. The exact case passed in
**1.3815941s** in build 1657813.
- **Android Mono:**
`HybridWebViewTests_SendRawMessage.SendRawMessageRoundTripsSpecialCharacters(testMessage:
"with\nnewline")` failed in **26.3186838s** because
`WaitForHybridWebViewLoaded` waited **25,000ms for page readiness**,
before the message-roundtrip callback/assertion was exercised. This is a
**page-readiness timeout**, not evidence of newline message corruption
or a failure of the modified GC case. Work item
`com.microsoft.maui.controls.devicetests-Signed`, job
`ff2ba15b-3c2c-454e-852c-8d09cdf291b9`, machine `a000AFK`, exit 1;
**1,175 total / 1,162 passed / 1 failed / 12 skipped / 0 errors**.
[Native
console/logcat](https://helix.dot.net/api/2019-06-17/jobs/ff2ba15b-3c2c-454e-852c-8d09cdf291b9/workitems/com.microsoft.maui.controls.devicetests-Signed/console)
confirms completed instrumentation with one test failure. The exact case
passed in **1.4111596s** in build 1657813.

**All 22 existing HybridWebView GC cases and both Windows iframe cases
passed again in build 1657980.** On the failed iOS Mono osx26 lane,
Base/Flyout/Tabbed HybridWebView GC passed in **1.1097638s / 1.1073444s
/ 1.2859115s**; Android Mono HybridWebView GC passed in **1.6390928s**.
The exact Windows iframe case passed **packaged 3.6392720s / unpackaged
5.1651167s**. The seven other native jobs, including iOS Mono osx15,
have empty failure/error-node sets.

**The two new failure causes and their PR attribution remain
unresolved.** Unchanged test methods and same-tree run-to-run
variability do not prove infrastructure failure, PR-unrelatedness, or
that a retry is safe. The earlier build 1657813 remains historical green
evidence for that run only; it does not make build 1657980 green. No
qualified production fix has been established, and no source, matrix,
deadline, assertion, or budget changes or additional runs were made as
part of this documentation update.

**Causal scope:** the native results support these fixture corrections,
but do not establish the original retention/event-delivery mechanism. An
earlier unchanged iOS Mono osx26 run already passed. This PR does not
claim hoisted-field retention, a production WebKit leak fix, or
deterministic ablation certification.

Commands/results:

```text
az pipelines run --id 314 --branch refs/heads/kubaflo-hybridwebview-gc-qualification --commit-id b7c2493 --org https://dev.azure.com/dnceng-public --project public --detect false -o json
Result: build 1657813 succeeded; all 62 native XML verified as above. No parameter/variable overrides.

dotnet build src/Controls/tests/DeviceTests/Controls.DeviceTests.csproj -c Release -f net11.0-android -p:AndroidPackageFormat=apk -p:UseMonoRuntime=false -p:TreatWarningsAsErrors=false -p:IncludeAndroidTargetFrameworks=true -p:IncludeIosTargetFrameworks=false -p:IncludeMacCatalystTargetFrameworks=false -p:IncludeMacOSTargetFrameworks=false -p:IncludeWindowsTargetFrameworks=false -p:IncludeTizenTargetFrameworks=false
Result: passed with pinned SDK 11.0.100; 0 errors, 3 existing MAUI1001/xUnit2031 warnings. Platform flags were local-only, not CI exclusions.

dotnet format whitespace . --folder --include src/Controls/tests/DeviceTests/Memory/MemoryTests.cs src/Core/tests/DeviceTests/Handlers/WebView/WebViewHandlerTests.Windows.cs --exclude Templates/src --verbosity minimal
Result: passed; both prepared candidates remained byte-identical. Whole-solution formatting was not completed.
```

Windows packaged/unpackaged compilation and iOS Mono/CoreCLR compilation
passed on the supported CI toolchain. No local Apple/Windows toolchain
bypass was used; unrelated parent-owned pipeline/UI-test work is outside
this PR's qualification scope.

### Issues Fixed

<!-- Please make sure that there is a bug logged for the issue being
fixed. The bug should describe the problem and how to reproduce it. -->

No separate bug issue is linked. Addresses the two native test-fixture
failures observed in [build
1657739](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1657739):
inherited
`MemoryTests_TabbedViewHandler.HandlerDoesNotLeak(HybridWebView)` on iOS
Mono osx26, and `CrossOriginIframeFetchOfAppDirResourceIsDenied` on
Windows Core packaged. Follow-up to the merged SDK/test baseline in
#39742.

<!--
Are you targeting main? All PRs should target the main branch unless
otherwise noted.
-->

---------
@kubaflo kubaflo closed this Nov 3, 2026
kubaflo added a commit that referenced this pull request Nov 3, 2026
…39791)

<!-- Please let the below note in for people that find this PR -->
> [!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](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

<!--
!!!!!!! MAIN IS THE ONLY ACTIVE BRANCH. MAKE SURE THIS PR IS TARGETING
MAIN. !!!!!!!
-->

### Description of Change

<!-- Enter description of the fix in this section -->

This is an explicitly requested **servicing backport**, targeting
`release/11.0.1xx`, not a new alternative fix or a promotion merge.
Commit `36bfdc9cc4dcdd4bbc3cac35110595a93b7634ba` has the exact
servicing parent `df9c5fd8109abf9411146d2fe041a2d8967e64ed` from #39742.

Retain the existing owned fixture correction from #39779:
- Only `TestCases.HostApp/Issues/Issue30381.cs`,
`TestCases.HostApp/Resources/Raw/issue30381.html`, and
`TestCases.Shared.Tests/Tests/Issues/Issue30381.cs` from source commit
`7d49f3b58650e187f06ce29f80d2a1744c6aef23`; **do not import that
commit's unrelated `eng/devices/uitests-shared.cake` edit**.
- Retain the isolated HostApp-only Catalyst bundle correction from
`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 `HtmlWebViewSource` and null `BaseUrl`,
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-uitests` definition 313 branch run
[1658190](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1658190)
used the exact pushed source, without parameter, variable, category,
matrix, configuration, or budget overrides. Each native lane's own
checkout log confirms `36bfdc9cc4dcdd4bbc3cac35110595a93b7634ba`.

`Issue30381.WebViewCanGoForwardShouldHaveValueAfterNavigation` passed on
the **first execution** in all three applicable default native lanes. No
test/task retry was executed in these WebView lanes.

| Actual target | Full WebView catalog | Issue30381 | Own receipt |
|---|---|---|---|
| MacCatalyst, CoreCLR on macOS **14.8.7** (`macos-14` image
`20260629.0276.1`) | **47/47 Passed** | Passed **32.420s** | [Native run
46161964](https://dev.azure.com/dnceng-public/public/_TestManagement/Runs?runId=46161964&_a=runCharts),
result 100039; raw log 4745, publication 4752 |
| iPhone 11 Pro CoreSimulator, actual **iOS 26.5** (`latest` lane),
CoreCLR | **53: 52 Passed, 1 existing NotExecuted** | Passed **6.453s**
| [Native run
46162166](https://dev.azure.com/dnceng-public/public/_TestManagement/Runs?runId=46162166&_a=runCharts),
result 100003; raw log 5067, publication 5081 |
| iPhone 11 Pro CoreSimulator, actual **iOS 18.5**, CoreCLR | **53: 52
Passed, 1 existing NotExecuted** | Passed **6.360s** | [Native run
46162092](https://dev.azure.com/dnceng-public/public/_TestManagement/Runs?runId=46162092&_a=runCharts),
result 100041; raw log 4956, publication 4991 |

The 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_WebviewTest` NotExecuted 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, at `App.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-coreclr` artifact 50872337 were downloaded and
verified against the tracked asset: iOS `.app/issue30381.html` and
Catalyst `.app/Contents/Resources/issue30381.html`, each **130 bytes**,
SHA-256
`140056173bca657a3b6ccde00de0b4a1fb0b07ea419856ad7be61352784d728d`.
Existing `MauiAsset` wildcard 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:

```sh
az pipelines run --id 313 --branch refs/heads/kubaflo-webview-history-fixture-servicing --commit-id 36bfdc9 --org https://dev.azure.com/dnceng-public --project public --only-show-errors -o json
```

Exact managed-only compile commands — both **passed, 0 warnings/0
errors**, using the already verified SDK 11.0.100/a586537b38:

```sh
env -u DOTNET_ROOT /Users/kubaflo/Projects/copilot-worktrees/maui/kubaflo-potential-tribble/.dotnet/dotnet build src/Controls/tests/TestCases.Mac.Tests/Controls.TestCases.Mac.Tests.csproj -c Release -f net11.0 -p:MauiPlatforms=net11.0 -v minimal
env -u DOTNET_ROOT /Users/kubaflo/Projects/copilot-worktrees/maui/kubaflo-potential-tribble/.dotnet/dotnet build src/Controls/tests/TestCases.iOS.Tests/Controls.TestCases.iOS.Tests.csproj -c Release -f net11.0 -p:MauiPlatforms=net11.0 -v minimal
```

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:
- **Windows Shell2:** raw 6040/native run 46166972; first and stock
retry each **197: 181 Passed, 3 Failed, 13 NotExecuted**.
`VerifyShellSearch_CancelButtonColor` and
`VerifyShellSearch_CharacterSpacing` retain 0.76% visual differences;
`VerifyShellSearch_TextTransformUppercase` retains 0.70%. Those separate
oracles/snapshots are the subject of owned follow-up #39783 and are
untouched here.
- **MacCatalyst Layout:** raw 6061/native run 46170266; the complete
first run was **193: 188 Passed, 1 Failed, 4 NotExecuted**, failing
`Issue17389.ValidateBackgroundColorDoesNotAffectInputTransparent`
because 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 (#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

<!-- Please make sure that there is a bug logged for the issue being
fixed. The bug should describe the problem and how to reproduce it. -->

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.

<!--
Are you targeting main? All PRs should target the main branch unless
otherwise noted.
-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants