Repository navigation
Conversation
Add native Shell SearchHandler text color assertions and replace the flaky full-window text-color screenshot with a screenshot-free smoke assertion. Strengthen Issue17389 with independent tap-routing coverage and Windows native background-layer assertions that target the original InputTransparent background rendering regression. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
kubaflo
temporarily deployed
to
copilot-pat-pool
September 26, 2026 18:20 — with
GitHub Actions
Inactive
Contributor
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 38919Or
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 38919" |
kubaflo
temporarily deployed
to
copilot-pat-pool
September 26, 2026 18:20 — with
GitHub Actions
Inactive
|
Azure Pipelines: Successfully started running 1 pipeline(s). There may be pipelines that require an authorized user to comment /azp run to run. |
kubaflo
temporarily deployed
to
copilot-pat-pool
September 26, 2026 18:21 — with
GitHub Actions
Inactive
kubaflo
temporarily deployed
to
copilot-pat-pool
September 26, 2026 18:23 — with
GitHub Actions
Inactive
kubaflo
temporarily deployed
to
copilot-pat-pool
September 26, 2026 18:24 — with
GitHub Actions
Inactive
kubaflo
temporarily deployed
to
copilot-pat-pool
September 26, 2026 18:24 — with
GitHub Actions
Inactive
Contributor
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
The Windows layout regression test has an unresolved child-clear lifecycle failure.
Review effort: Lite
Findings: 1
Open (1)
What changed in this PR
Replaces flaky screenshot checks with native Shell assertions and independent UI tests, adding Windows layout regression coverage.
Changes:
- Adds native SearchHandler text-color tests for iOS/MacCatalyst and Windows.
- Replaces Shell screenshot coverage with a text-entry smoke test.
- Splits Issue17389 scenarios into independent tests.
- Adds Windows
InputTransparentbackground-layer validation.
| File | Summary |
|---|---|
src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue17389.cs |
Independent tap-routing and background-toggle tests. |
src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/ShellSearchHandlerFeatureTests.cs |
Screenshot-free text-entry validation. |
src/Controls/tests/TestCases.HostApp/Issues/Issue17389.cs |
Test-state labels and automation identifiers. |
src/Controls/tests/DeviceTests/Elements/Shell/ShellTests.Windows.cs |
Native AutoSuggestBox text-color assertion. |
src/Controls/tests/DeviceTests/Elements/Shell/ShellTests.iOS.cs |
Native UISearchBar text-color assertion. |
src/Controls/tests/DeviceTests/Elements/Layout/LayoutTests.Windows.cs |
Native background-layer regression coverage. Moderate issue: clearing cached children removes the background canvas while state remains non-null, causing the subsequent assertion to fail (4 votes). Also includes two nits regarding tautological ordering and arranged-size validation (1 vote each). |
Comment on lines
+96
to
+97
| transparentChild.Clear(); | ||
| transparentChild.Add(new Label { Text = "Replacement", InputTransparent = false }); |
Contributor
Author
|
/azp run |
|
Azure Pipelines: Successfully started running 3 pipeline(s). |
This branch was previously deployed
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.

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
This PR replaces a focused set of flaky full-window screenshot coverage with native assertions and screenshot-free UI checks:
Shell.SearchHandler.TextColoron iOS/MacCatalyst and Windows by asserting the real platform search control (UISearchBar/AutoSuggestBox) updates to red text after runtime property changes.VerifyShellSearch_TextColorfull-window UI screenshot with a screenshot-free smoke assertion that text entry still works, while the native device tests protect the actual text-color mapping.InputTransparentlayout keeps its non-hit-testable native backgroundCanvas, withZIndex=int.MinValue, full arranged bounds, expected brush color, rendered pixel color, and preservation across child mutations plusInputTransparent/background transitions.Relationship to nearby PRs
Issue35736runtime SearchHandler icon updates/reset through native Apple Shell assertions, so this PR intentionally leavesIssue35736screenshots unchanged rather than duplicating that draft PR's work.Validation
git diff --checkpassed.pwsh .github/skills/run-device-tests/scripts/Run-DeviceTests.ps1 -Project Controls -Platform maccatalyst -TestFilter "Category=Shell"; blocked before tests by stale/missing in-tree build tasks../build.sh -restore -build -configuration Release -projects $(pwd)/Microsoft.Maui.BuildTasks.slnf /bl:BuildBuildTasks.binlog -warnAsError false; stopped after an extended workload-install/restore phase with no logged build errors yet..dotnet/dotnet build Microsoft.Maui.BuildTasks.slnf -c Release --no-restore /p:TreatWarningsAsErrors=false /bl:BuildBuildTasks-Narrow.binlog; failed due environment prerequisites unrelated to this diff: missing restored assets, missing net472 reference assemblies, and missing Android workload.Windows-specific native background validation requires PR CI because this macOS host cannot run Windows device tests.