-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[Testing] Fix for flaky UITests in CI - 2 #31763
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
[Testing] Fix for flaky UITests in CI - 2 #31763
Conversation
|
/azp run MAUI-UITests-public |
|
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR addresses flaky UI test failures in the CI pipeline by improving test reliability and rendering stability for WebView and CollectionView tests.
- Added internet connectivity verification for WebView tests to ensure network availability before execution
- Changed scroll strategy from Auto to Gesture for better reliability in CollectionView horizontal scrolling tests
- Updated WebView test to use a more stable static web link (example.com) instead of a GitHub issue URL
Reviewed Changes
Copilot reviewed 3 out of 5 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| Issue30575.cs (Tests) | Added VerifyInternetConnectivity() call before WebView test execution |
| CollectionViewUITests.HeaderAndFooter.cs | Changed scroll strategy from Auto to Gesture for improved reliability |
| Issue30575.cs (HostApp) | Updated WebView URL to example.com and added isInternetRequired flag |
|
|
||
| [Test] | ||
| [Category(UITestCategories.WebView)] | ||
| public void WebViewShouldNotMirrored() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jsuarezruiz I have added the pending snapshots in the latest commit.
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
|
/rebase |
04cb5ce to
1184149
Compare
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
|
/rebase |
d073c7f to
dfb00ff
Compare
|
/azp run MAUI-UITests-public |
|
Azure Pipelines successfully started running 1 pipeline(s). |
jsuarezruiz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| namespace Maui.Controls.Sample.Issues; | ||
|
|
||
| [Issue(IssueTracker.Github, 30575, "FlowDirection RightToLeft causes mirrored content in WebView", PlatformAffected.UWP)] | ||
| [Issue(IssueTracker.Github, 30575, "FlowDirection RightToLeft causes mirrored content in WebView", PlatformAffected.UWP, isInternetRequired: true)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this change no longer necessary with the HtmlWebViewSource below?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MartyIX I have updated the test case in the latest commit.
@jsuarezruiz I have updated the test case in the latest commit. Could you please rerun the CI? |
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
jsuarezruiz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@TamilarasanSF4853 Could you rebase to fix the conflicts?
79b9d70 to
9231c88
Compare
@jsuarezruiz I have rebased the branch and resolved the conflicts. |



This PR addresses UI test image failures in the main branch and includes updates to improve rendering and test stability across platforms.
Test cases: