Skip to content

[release/10.0.1xx-sr11] [Testing] Fix for DisplayAlertAsyncShouldNotCrashWhenPageUnloaded UITests failure - #38565

Merged
kubaflo merged 1 commit into
release/10.0.1xx-sr11from
backport/pr-38564-to-release/10.0.1xx-sr11
Sep 15, 2026
Merged

kubaflo merged 1 commit into
release/10.0.1xx-sr11from
backport/pr-38564-to-release/10.0.1xx-sr11

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Backport of #38564 to release/10.0.1xx-sr11

/cc @kubaflo @TamilarasanSF4853

…ests failure (#38564)

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.
<img width="733" height="257" alt="image"
src="https://github.com/user-attachments/assets/51c50316-b906-42fd-b4ee-9117c18ce47b"
/>


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

Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>
@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 2aae92b into release/10.0.1xx-sr11 Sep 15, 2026
1 of 11 checks passed
@kubaflo
kubaflo deleted the backport/pr-38564-to-release/10.0.1xx-sr11 branch September 15, 2026 14:11
@github-actions github-actions Bot added this to the .NET 10 SR11 milestone Sep 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants