Repository navigation
[ci-scan] Fix for Issue24996 ChangingTranslationShouldNotCauseLayoutPassOnAncestors failure on Mac - #38109
Merged
Conversation
Ahamed-Ali
temporarily deployed
to
copilot-pat-pool
September 2, 2026 11:15 — 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 -- 38109Or
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 38109" |
Ahamed-Ali
temporarily deployed
to
copilot-pat-pool
September 2, 2026 11:15 — 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. |
Ahamed-Ali
temporarily deployed
to
copilot-pat-pool
September 2, 2026 11:16 — with
GitHub Actions
Inactive
Ahamed-Ali
temporarily deployed
to
copilot-pat-pool
September 2, 2026 11:18 — with
GitHub Actions
Inactive
Ahamed-Ali
temporarily deployed
to
copilot-pat-pool
September 2, 2026 11:19 — with
GitHub Actions
Inactive
Ahamed-Ali
temporarily deployed
to
copilot-pat-pool
September 2, 2026 11:19 — with
GitHub Actions
Inactive
sheiksyedm
marked this pull request as ready for review
September 2, 2026 11:40
|
Azure Pipelines: Successfully started running 1 pipeline(s). There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The PR description still contains template placeholder comments and is missing the required NOTE block at the top per repo PR requirements.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
This PR aims to stabilize the Issue24996.ChangingTranslationShouldNotCauseLayoutPassOnAncestors UI test by waiting for the asynchronously-updated "Stats" label text before asserting, reducing races where the test reads stale counter values.
Changes:
- Updated the test to use
App.WaitForTextToBePresentInElement("Stats", "Lvl1[0/0]")instead of immediately readingGetText()after a tap. - Removed the
NUnit.Framework.Legacydependency by switching fromClassicAsserttoAssert.That.
File summaries
| File | Description |
|---|---|
| src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue24996.cs | Makes the UI test wait for the expected updated label text before asserting, to reduce flakiness from async UI updates. |
Review details
- Files reviewed: 1/1 changed files
- Comments generated: 0
- Review effort level: Lite
kubaflo
approved these changes
Sep 2, 2026
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.
Root cause
App.WaitForElement("Stats") only waited for the existing element, not for its asynchronously updated text. CI could therefore read stale initialization/layout-pass values such as Lvl1[1/1], causing a flaky failure.
Description of change
Replaced the immediate text read with WaitForTextToBePresentInElement, which polls for Lvl1[0/0] for up to 15 seconds before asserting success. This allows the asynchronous counter reset and UI update to complete.
Issues Fixed
Fixes #36051