Skip to content

[Testing] Re-Enabled UI Test - Issue12574Test #29436

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

Merged

Conversation

TamilarasanSF4853
Copy link
Contributor

@TamilarasanSF4853 TamilarasanSF4853 commented May 12, 2025

Description of Change

This pull request addresses improvements to a test case for Issue 12574 by refining the test logic, enhancing user interaction handling, and removing a platform-specific exclusion directive. The changes aim to make the test more robust and platform-independent.

Issue

Previously, the test was experiencing intermittent failures (flakiness) on Android because scrolling in the carousel view items wasn't working consistently in CI. As a result, the test case was failing continuously on the Android platform.

Solution

Since this test was added to verify that the CarouselView freezes on iOS, we used programmatic scrolling instead of manual scrolling to preserve the intent of the original test case.

Fixes #28760 (Issue12574Test)

@dotnet-policy-service dotnet-policy-service bot added the community ✨ Community Contribution label May 12, 2025
Copy link
Contributor

Hey there @@TamilarasanSF4853! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

@dotnet-policy-service dotnet-policy-service bot added the partner/syncfusion Issues / PR's with Syncfusion collaboration label May 12, 2025
@anandhan-rajagopal anandhan-rajagopal added the area-testing Unit tests, device tests label May 12, 2025
@TamilarasanSF4853 TamilarasanSF4853 marked this pull request as ready for review May 12, 2025 06:37
@Copilot Copilot AI review requested due to automatic review settings May 12, 2025 06:37
@TamilarasanSF4853 TamilarasanSF4853 requested a review from a team as a code owner May 12, 2025 06:37
Copy link
Contributor

@Copilot 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 PR refines the test case for Issue12574 by replacing manual scrolling with programmatic swiping, enhancing test robustness and platform independence.

  • Replaces App.ScrollRight calls with App.Tap on a new swipe button in the shared test code.
  • Adds a new swipe button and updates the layout and event handling in the host app to support the improved test flow.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/CarouselViewUITests.LoopNoFreeze.cs Replaced manual swipe gestures with tapping on a dedicated swipe button.
src/Controls/tests/TestCases.HostApp/Issues/CarouselViewLoopNoFreeze.cs Added a new swipe button, updated grid layout, and introduced a CurrentPosition property in the view model to manage carousel swiping.

@jsuarezruiz
Copy link
Contributor

/azp run MAUI-UITests-public

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@PureWeen PureWeen changed the base branch from main to inflight/current May 21, 2025 17:37
@PureWeen PureWeen merged commit 651e9ed into dotnet:inflight/current May 21, 2025
78 checks passed
github-actions bot pushed a commit that referenced this pull request May 22, 2025
* re-enabled the test for android

* modified test case

* Update src/Controls/tests/TestCases.HostApp/Issues/CarouselViewLoopNoFreeze.cs

Co-authored-by: Copilot <[email protected]>

---------

Co-authored-by: Copilot <[email protected]>
github-actions bot pushed a commit that referenced this pull request May 30, 2025
* re-enabled the test for android

* modified test case

* Update src/Controls/tests/TestCases.HostApp/Issues/CarouselViewLoopNoFreeze.cs

Co-authored-by: Copilot <[email protected]>

---------

Co-authored-by: Copilot <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-testing Unit tests, device tests community ✨ Community Contribution partner/syncfusion Issues / PR's with Syncfusion collaboration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Testing] Reenable flaky UI test with Issue19214Test
4 participants