Skip to content

[TestFailure] [iOS] Fix Shell badge color UI test failures - #39829

Merged
kubaflo merged 2 commits into
dotnet:mainfrom
Vignesh-SF3580:fix-ShellBadgeFailures
Nov 4, 2026
Merged

kubaflo merged 2 commits into
dotnet:mainfrom
Vignesh-SF3580:fix-ShellBadgeFailures

Conversation

@Vignesh-SF3580

@Vignesh-SF3580 Vignesh-SF3580 commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Issue details

On iOS and Mac Catalyst, Shell badges render using the system's default red color instead of their configured blue, red, or orange colors. This affects the following UI tests:

  • ShellBadgeMultipleTabsCanHaveBadges
  • ShellBadgeCanBeSetAtRuntime
  • ShellBadgeCanBeCleared
  • ShellBadgeInitialBadgeIsVisible

Regression PR: #39779

Root cause

PR-39779 captures tab bar defaults earlier during initialization. However, ResetAppearance uses the fact that defaults have been captured as the condition for restoring them.
As a result, an unstyled Shell now explicitly applies native default appearances where it previously did nothing, causing badges to use the system's default red color.

Description of changes

  • Track whether Shell has applied a custom tab-bar appearance.
  • Skip resetting the tab bar during initial setup when Shell styling has not been applied.
  • Restore the captured native appearance when Shell styling is cleared.
  • Reapply per-tab badge values after setting or resetting the tab-bar appearance.

Screenshot

Before Issue Fix After Issue Fix

@github-actions

github-actions Bot commented Nov 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 -- 39829

Or

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

@azure-pipelines

This comment has been minimized.

@Vignesh-SF3580 Vignesh-SF3580 changed the title [WIP] [iOS] Fix Shell badge color UI test failures [WIP] [TestFailure] [iOS] Fix Shell badge color UI test failures Nov 2, 2026
@dotnet-policy-service dotnet-policy-service Bot added the partner/syncfusion Issues / PR's with Syncfusion collaboration label Nov 2, 2026
@Vignesh-SF3580 Vignesh-SF3580 added the community ✨ Community Contribution label Nov 2, 2026
@vishnumenon2684

This comment has been minimized.

@azure-pipelines

This comment has been minimized.

@kubaflo

This comment has been minimized.

@github-actions github-actions Bot added the s/agent-review-in-progress AI review is currently running for this PR label Nov 2, 2026
@MauiBot

This comment has been minimized.

@kubaflo

This comment has been minimized.

@github-actions

This comment has been minimized.

@vishnumenon2684

This comment has been minimized.

@azure-pipelines

This comment has been minimized.

@kubaflo

This comment has been minimized.

@github-actions github-actions Bot added the s/agent-review-in-progress AI review is currently running for this PR label Nov 3, 2026
@MauiBot

This comment has been minimized.

@MauiBot MauiBot removed the s/agent-review-in-progress AI review is currently running for this PR label Nov 3, 2026
@kubaflo

This comment has been minimized.

@github-actions github-actions Bot added the s/agent-review-in-progress AI review is currently running for this PR label Nov 3, 2026

@github-actions github-actions Bot 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.

Expert Review — 1 finding

Reviewed commit 50a40f4.

See inline comments for details.

@MauiBot

This comment has been minimized.

@MauiBot MauiBot removed the s/agent-review-in-progress AI review is currently running for this PR label Nov 3, 2026
@Vignesh-SF3580 Vignesh-SF3580 changed the title [WIP] [TestFailure] [iOS] Fix Shell badge color UI test failures [TestFailure] [iOS] Fix Shell badge color UI test failures Nov 4, 2026
@sheiksyedm
sheiksyedm marked this pull request as ready for review November 4, 2026 06:22
@sheiksyedm
sheiksyedm requested review from kubaflo and a balanced review from Copilot and removed request for Copilot November 4, 2026 06:22
@kubaflo

This comment has been minimized.

@github-actions github-actions Bot added the s/agent-review-in-progress AI review is currently running for this PR label Nov 4, 2026

@github-actions github-actions Bot 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.

Expert Review — 1 finding

Reviewed commit 50a40f4.

See inline comments for details.

@MauiBot

MauiBot commented Nov 4, 2026

Copy link
Copy Markdown
Collaborator

PR Test Gate

@Vignesh-SF3580 — existing-test verification for commit 50a40f4c.

Result SKIPPED Platform Android Commit 50a40f4c


🧪 Gate analysis — click to expand

⚠ Skipped. No runnable PR tests were selected. The fix has not been verified by this gate.

No interpretable test-group summary was produced. No additional test execution is inferred.

PR head: 50a40f4c.

Without-fix baseline: 82b9930a.

@MauiBot MauiBot removed the s/agent-review-in-progress AI review is currently running for this PR label Nov 4, 2026
@kubaflo
kubaflo merged commit e86ef24 into dotnet:main Nov 4, 2026
173 of 176 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Dec 5, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

community ✨ Community Contribution partner/syncfusion Issues / PR's with Syncfusion collaboration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants