-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[Testing] Fix for flaky UITest VerifyEditorTextWhenTextColorSetCorrectly in CI #31004
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 UITest VerifyEditorTextWhenTextColorSetCorrectly in CI #31004
Conversation
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 pull request addresses a flaky UI test issue by ensuring the Editor control is properly unfocused before taking a screenshot verification. The test was experiencing inconsistent behavior in CI environments where the Editor control might remain focused, affecting the visual appearance captured in screenshots.
- Adds a tap action to unfocus the Editor control before screenshot verification
- Improves test reliability by ensuring consistent UI state during screenshot comparison
src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/EditorFeatureTests.cs
Outdated
Show resolved
Hide resolved
…EditorFeatureTests.cs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 3 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.
- failing tests unrelated
…tly in CI (dotnet#31004) * Update EditorFeatureTests.cs * Added comments * Update EditorFeatureTests.cs * Update src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/EditorFeatureTests.cs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Updated base image for VerifyEditorTextWhenTextColorSetCorrectly test --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…tly in CI (#31004) * Update EditorFeatureTests.cs * Added comments * Update EditorFeatureTests.cs * Update src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/EditorFeatureTests.cs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Updated base image for VerifyEditorTextWhenTextColorSetCorrectly test --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Description of change
This pull request includes a minor change to the
VerifyEditorTextWhenTextColorSetCorrectlytest inEditorFeatureTests.cs. The change adds an additional tap action to ensure theEntrycontrol is unfocused before verifying the screenshot.src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/EditorFeatureTests.cs: Added a tap action on "Editor Control" to unfocus theEditorcontrol before taking the screenshot in theVerifyEditorTextWhenTextColorSetCorrectlytest.