Skip to content

Remove stale input transparency test TODO - #38105

Merged
kubaflo merged 1 commit into
net11.0from
jfversluis-verify-input-transparency-tests
Sep 2, 2026
Merged

kubaflo merged 1 commit into
net11.0from
jfversluis-verify-input-transparency-tests

Conversation

@jfversluis

Copy link
Copy Markdown
Member

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!

Summary

  • Remove the stale TODO suggesting the later input-transparency tests may be duplicates.
  • Preserve all existing test behavior because the later cases add complementary coverage.

Coverage comparison

The earlier tests exhaust the five Boolean cascade/input states for a two-level Grid hierarchy with a Button, including property-order permutations and one-property inversions. The later tests additionally cover Button, VerticalStackLayout, Editor, and Entry children; direct and three-level-deep nesting; repeated parent state transitions back to the initial value; and nested cascade boundaries where parent and nested layouts independently enable or disable cascading. Those dimensions are not mechanically identical to the earlier matrix, so no tests were consolidated or deleted.

Validation

  • dotnet format Microsoft.Maui.sln --no-restore --exclude Templates\src --exclude-diagnostics CA1822 --include src\Controls\tests\Core.UnitTests\VisualElementInputTransparentTests.cs --verbosity quiet
  • eng\common\dotnet.cmd test src\Controls\tests\Core.UnitTests\Controls.Core.UnitTests.csproj --filter "FullyQualifiedName~Microsoft.Maui.Controls.Core.UnitTests.VisualElementInputTransparentTests" -p:IncludeAndroidTargetFrameworks=false -p:IncludeIosTargetFrameworks=false -p:IncludeMacCatalystTargetFrameworks=false -p:IncludeWindowsTargetFrameworks=false -p:IncludeMacOSTargetFrameworks=false -p:IncludeTizenTargetFrameworks=false --verbosity minimal (372 passed)

The later tests retain complementary coverage for concrete element types, deep nesting, cascade boundaries, and repeated state transitions.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI lite review requested due to automatic review settings September 2, 2026 08:53
@github-actions

github-actions Bot commented Sep 2, 2026

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 -- 38105

Or

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

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
There may be pipelines that require an authorized user to comment /azp run to run.

@github-actions github-actions Bot added the area-controls-general General issues that span multiple controls, or common base classes such as View or Element label Sep 2, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The change is limited to removing a stale comment and does not modify runtime code or test behavior.

Review tier: Lite
Findings: None

What changed in this PR

Removes a stale TODO from the VisualElementInputTransparentTests unit tests to avoid implying that the subsequent test matrix is redundant, while keeping all existing test behavior and coverage intact.

Changes:

  • Removed an outdated TODO comment that suggested later input-transparency tests might be duplicates.
File Description
src/​Controls/​tests/​Core.UnitTests/​VisualElementInputTransparentTests.cs Removes a misleading TODO comment without changing test logic or coverage.

@kubaflo
kubaflo merged commit 4b5c776 into net11.0 Sep 2, 2026
35 of 40 checks passed
@kubaflo
kubaflo deleted the jfversluis-verify-input-transparency-tests branch September 2, 2026 14:07
@github-actions github-actions Bot added this to the .NET 11.0-preview7 milestone Sep 2, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 3, 2026

This branch was previously deployed

1 inactive deployment
copilot-pat-pool — cfbab5d0 Deployed Sep 2, 2026 by jfversluis via conclusion #1693
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-controls-general General issues that span multiple controls, or common base classes such as View or Element

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants