-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[Testing] Fix for flaky UITests in CI that occasionally fail - 4 #28137
[Testing] Fix for flaky UITests in CI that occasionally fail - 4 #28137
Conversation
Hey there @HarishKumarSF4517! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed. |
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.
PR Overview
This PR aims to improve the reliability of UI tests in CI by adjusting the scrolling interactions in two test cases. Key changes include:
- Replacing a ScrollUp action with a DragCoordinates gesture in Issue16910 to ensure consistent triggering of the refresh command.
- Adding a preliminary ScrollUp step before a ScrollDown in Issue25889 to reliably trigger the command.
Reviewed Changes
File | Description |
---|---|
src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue16910.cs | Modified the refresh test to use DragCoordinates with computed element positions. |
src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue25889.cs | Adjusted scrolling sequence by adding a ScrollUp before ScrollDown with an updated comment. |
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue25889.cs
Outdated
Show resolved
Hide resolved
4917bc2
to
d6d7495
Compare
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
/rebase |
LGTM, but rebased to fix the flaky tests already fixed by #28137 and failing in the latest build from this PR. |
…889.cs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
d6d7495
to
531c26c
Compare
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
…net#28137) * Increase stability for CI failure Issues * Update src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue25889.cs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Description of Change
This pull request includes updates to the test cases in the
src/Controls/tests/TestCases.Shared.Tests/Tests/Issues
directory to improve the reliability of UI interactions during automated testing. The most important changes involve replacing certain Appium actions with more reliable alternatives and adding comments to explain these changes.src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue16910.cs
: ReplacedApp.ScrollUp
withApp.DragCoordinates
in theBindingUpdatesFromInteractiveRefresh
method to ensure the refresh command is triggered consistently in CI environments.src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue25889.cs
: Added a step to scroll up before scrolling down in theRemainingItemsThresholdReachedCommandFired
method to ensure the command is triggered reliably in CI environments.TestCases
Fixes #28178