[Testing] Fix for flaky test(ListViewViewCellBinding) in CI#29409
Conversation
Contributor
|
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. |
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR improves the reliability of the UI tests in ListViewViewCellBinding.cs by adding explicit wait calls before tapping the "Add" and "Remove" buttons to mitigate flakiness in CI.
- Added App.WaitForElement("Add") to ensure visibility before tapping the "Add" button.
- Added App.WaitForElement("Remove") to ensure visibility before tapping the "Remove" button.
Contributor
|
/azp run MAUI-UITests-public |
|
Azure Pipelines successfully started running 1 pipeline(s). |
jsuarezruiz
approved these changes
May 9, 2025
rmarinho
approved these changes
May 9, 2025
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Description
This pull request makes minor updates to the test cases in
ListViewViewCellBinding.csto improve the reliability of UI interactions by adding explicit waits for elements before performing actions.Test case improvements:
ListViewViewCellBindingTestsAddListItem: Added aWaitForElementcall to ensure the "Add" button is visible before tapping it.ListViewViewCellBindingTestsRemoveListItem: Added aWaitForElementcall to ensure the "Remove" button is visible before tapping it.