Skip to content

[Testing] Fix for DisplayAlertAsyncShouldNotCrashWhenPageUnloaded UITests failure - #38564

Merged
kubaflo merged 1 commit into
dotnet:mainfrom
TamilarasanSF4853:Fix-Flaky-Issue33287
Sep 15, 2026
Merged

kubaflo merged 1 commit into
dotnet:mainfrom
TamilarasanSF4853:Fix-Flaky-Issue33287

Conversation

@TamilarasanSF4853

@TamilarasanSF4853 TamilarasanSF4853 commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

This PR addresses UI test failures in the main branch caused by this PR #38381. It also includes updates to improve rendering and test stability across platforms.
image

Test reliability and feedback improvements:

  • Added a Label (statusLabel) to Issue33287MainPage to display status updates about the alert request, making it easier to observe the test's progress and results.
  • Updated navigation and alert logic so that when navigating to Issue33287SecondPage, a callback updates the status label as the alert request is created and returned, improving visibility into the test flow.

Code simplification and modernization:

  • Refactored Issue33287SecondPage to remove the internal button field and use a constructor parameter for status updates, and replaced the delayed alert logic with a property change handler that triggers the alert when the page is detached.
  • Removed unnecessary using System.Threading.Tasks; and added using System.ComponentModel; for property change handling.

Test assertion enhancements:

  • Updated the test in Issue33287.cs to assert that the status label reflects the alert request and that the app remains responsive, providing more robust and meaningful test coverage.

@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 -- 38564

Or

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

@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.

@dotnet-policy-service dotnet-policy-service Bot added the community ✨ Community Contribution label Sep 15, 2026
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Hey there @@TamilarasanSF4853! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

@dotnet-policy-service dotnet-policy-service Bot added the partner/syncfusion Issues / PR's with Syncfusion collaboration label Sep 15, 2026
@sheiksyedm
sheiksyedm marked this pull request as ready for review September 15, 2026 13:41
@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.

@kubaflo
kubaflo merged commit 1cd2e15 into dotnet:main Sep 15, 2026
12 of 21 checks passed
@github-actions github-actions Bot added this to the .NET 10 SR12 milestone Sep 15, 2026
@kubaflo

kubaflo commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

/backport to release/10.0.1xx-sr11

@github-actions

Copy link
Copy Markdown
Contributor

Started backporting to release/10.0.1xx-sr11 (link to workflow run)

kubaflo added a commit that referenced this pull request Sep 15, 2026
…rashWhenPageUnloaded UITests failure (#38565)

Backport of #38564 to release/10.0.1xx-sr11

/cc @kubaflo @TamilarasanSF4853

Co-authored-by: TamilarasanSF4853 <tamilarasan.velu@syncfusion.com>
Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 16, 2026

This branch was previously deployed

1 inactive deployment
copilot-pat-pool — 7621d1ec Deployed Sep 15, 2026 by TamilarasanSF4853 via conclusion #1904
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 testing-flakiness

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants