Repository navigation
[release/10.0.1xx-sr11] [Testing] Fix for DisplayAlertAsyncShouldNotCrashWhenPageUnloaded UITests failure - #38565
Merged
kubaflo merged 1 commit intoSep 15, 2026
Conversation
…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: Successfully started running 1 pipeline(s). There may be pipelines that require an authorized user to comment /azp run to run. |
kubaflo
approved these changes
Sep 15, 2026
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Backport of #38564 to release/10.0.1xx-sr11
/cc @kubaflo @TamilarasanSF4853