KEMBAR78
[Testing] Fix for flaky UITest VerifyEditorTextWhenTextColorSetCorrectly in CI · Pull Request #31004 · dotnet/maui · GitHub
Skip to content

Conversation

@ghost
Copy link

@ghost ghost commented Aug 4, 2025

Description of change

This pull request includes a minor change to the VerifyEditorTextWhenTextColorSetCorrectly test in EditorFeatureTests.cs. The change adds an additional tap action to ensure the Entry control is unfocused before verifying the screenshot.

@dotnet-policy-service dotnet-policy-service bot added community ✨ Community Contribution partner/syncfusion Issues / PR's with Syncfusion collaboration labels Aug 4, 2025
@ghost ghost marked this pull request as ready for review August 4, 2025 05:43
@Copilot Copilot AI review requested due to automatic review settings August 4, 2025 05:43
@ghost ghost self-requested a review as a code owner August 4, 2025 05:43
@ghost ghost requested review from mattleibow and rmarinho August 4, 2025 05:43
@ghost ghost added area-testing Unit tests, device tests testing-flakiness labels Aug 4, 2025
Copy link
Contributor

Copilot AI left a 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

…EditorFeatureTests.cs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@PureWeen
Copy link
Member

PureWeen commented Aug 4, 2025

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@PureWeen
Copy link
Member

PureWeen commented Aug 4, 2025

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 3 pipeline(s).

Copy link
Member

@PureWeen PureWeen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • failing tests unrelated

@PureWeen PureWeen merged commit 97451bb into dotnet:main Aug 4, 2025
126 of 129 checks passed
SuthiYuvaraj pushed a commit to SuthiYuvaraj/maui that referenced this pull request Aug 12, 2025
…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>
rmarinho pushed a commit that referenced this pull request Aug 13, 2025
…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>
@github-actions github-actions bot locked and limited conversation to collaborators Sep 4, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-testing Unit tests, device tests community ✨ Community Contribution partner/syncfusion Issues / PR's with Syncfusion collaboration testing-flakiness

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant