Skip to content

[Testing] Feature Matrix UITest Cases for ProgressBar Control #29980

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

This PR includes a comprehensive set of UI test cases for the ProgressBar control. The tests validate the ProgressBar control, including properties such as Progress, ProgressColor, BackgroundColor, IsVisible, FlowDirection, and Shadow.

ProgressBar Control Implementation:

  • Added ProgressBarControlPage to host the ProgressBar control, with bindings for properties like Progress, ProgressColor, BackgroundColor, IsVisible, FlowDirection, and Shadow.

  • Implemented interactive controls directly within ProgressBarControlPage to allow users to dynamically configure ProgressBar properties through a ViewModel pattern.

  • Added event handlers in ProgressBarControlPage.xaml.cs to update the ProgressBar control dynamically based on user interactions.

  • Implemented a suite of UI tests in ProgressBarFeatureTests to validate property updates, visibility states, color configurations (ProgressColor, BackgroundColor), flow direction, shadow behavior, progress value changes, and handling of edge cases (negative and out-of-range progress values). Used VerifyScreenshot() for visual verification across property configurations and platforms.

Screen.Recording.2025-06-13.at.4.50.05.PM.mov

@dotnet-policy-service dotnet-policy-service bot added the community ✨ Community Contribution label Jun 13, 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 Jun 13, 2025
@anandhan-rajagopal anandhan-rajagopal added area-testing Unit tests, device tests area-controls-progressbar ProgressBar labels Jun 16, 2025
@jsuarezruiz
Copy link
Contributor

/azp run MAUI-UITests-public

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@TamilarasanSF4853 TamilarasanSF4853 marked this pull request as ready for review June 16, 2025 07:06
@Copilot Copilot AI review requested due to automatic review settings June 16, 2025 07:06
@TamilarasanSF4853 TamilarasanSF4853 requested a review from a team as a code owner June 16, 2025 07:06
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 introduces a comprehensive suite of UI test cases for the ProgressBar control in the Feature Matrix, along with the supporting ViewModel and control page for dynamic property configuration.

  • Added multiple NUnit test cases for progress, progress color, background color, visibility, flow direction, shadow, and progress-to animations.
  • Introduced new ProgressBarControlPage and ProgressBarViewModel in the HostApp to support live configuration testing.
  • Updated the gallery list to include the new ProgressBar feature matrix page.

Reviewed Changes

Copilot reviewed 19 out of 19 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/ProgressBarFeatureTests.cs Added UI tests to validate various ProgressBar properties and states.
src/Controls/tests/TestCases.HostApp/FeatureMatrix/ProgressBar/ProgressBarViewModel.cs Introduced view model with bindable properties for ProgressBar configuration.
src/Controls/tests/TestCases.HostApp/FeatureMatrix/ProgressBar/ProgressBarControlPage.xaml.cs Added code-behind for the ProgressBar page with event handlers for dynamic updates.
src/Controls/tests/TestCases.HostApp/FeatureMatrix/ProgressBar/ProgressBarControlPage.xaml Added XAML for the ProgressBar page layout and bindings.
src/Controls/tests/TestCases.HostApp/CoreViews/CorePageView.cs Updated gallery list to include the new ProgressBar Feature Matrix page.
Comments suppressed due to low confidence (2)

src/Controls/tests/TestCases.HostApp/FeatureMatrix/ProgressBar/ProgressBarControlPage.xaml:71

  • The radio button's x:Name 'IsVisibleTrueRadio' conflicts with its AutomationId 'IsVisibleFalseRadio' and Content 'False'. Consider renaming the x:Name to 'IsVisibleFalseRadio' for clarity and consistency.
<RadioButton x:Name="IsVisibleTrueRadio" VerticalOptions="Center" AutomationId="IsVisibleFalseRadio" GroupName="IsVisible" Content="False" CheckedChanged="OnIsVisibleCheckedChanged"/>

src/Controls/tests/TestCases.HostApp/FeatureMatrix/ProgressBar/ProgressBarControlPage.xaml:129

  • The radio button's x:Name 'ShadowFalseRadio' conflicts with its AutomationId 'ShadowTrueRadio' and Content 'True'. It is recommended to align the naming to reflect the actual control state.
<RadioButton x:Name="ShadowFalseRadio" VerticalOptions="Center" AutomationId="ShadowTrueRadio" Content="True" CheckedChanged="OnShadowCheckedChanged"/>

Copy link
Contributor

@jsuarezruiz jsuarezruiz left a comment

Choose a reason for hiding this comment

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

Pending snapshots for Mac and Windows.
image
Already available in the latest build. Could you commit the images?

@TamilarasanSF4853
Copy link
Contributor Author

Pending snapshots for Mac and Windows. image Already available in the latest build. Could you commit the images?

Hi @jsuarezruiz I have added the pending snapshots in the latest commit.

@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 June 24, 2025 17:17
@PureWeen PureWeen merged commit b9db716 into dotnet:inflight/current Jun 24, 2025
78 of 79 checks passed
PureWeen pushed a commit that referenced this pull request Jun 25, 2025
* added test cases

* modified test cases

* added snapshots

* added mac and windows snapshots
github-actions bot pushed a commit that referenced this pull request Jun 26, 2025
* added test cases

* modified test cases

* added snapshots

* added mac and windows snapshots
PureWeen pushed a commit that referenced this pull request Jun 27, 2025
* added test cases

* modified test cases

* added snapshots

* added mac and windows snapshots
PureWeen pushed a commit that referenced this pull request Jun 28, 2025
* added test cases

* modified test cases

* added snapshots

* added mac and windows snapshots
github-actions bot pushed a commit that referenced this pull request Jun 29, 2025
* added test cases

* modified test cases

* added snapshots

* added mac and windows snapshots
github-actions bot pushed a commit that referenced this pull request Jun 29, 2025
* added test cases

* modified test cases

* added snapshots

* added mac and windows snapshots
github-actions bot pushed a commit that referenced this pull request Jul 1, 2025
* added test cases

* modified test cases

* added snapshots

* added mac and windows snapshots
github-actions bot pushed a commit that referenced this pull request Jul 2, 2025
* added test cases

* modified test cases

* added snapshots

* added mac and windows snapshots
github-actions bot pushed a commit that referenced this pull request Jul 2, 2025
* added test cases

* modified test cases

* added snapshots

* added mac and windows snapshots
github-actions bot pushed a commit that referenced this pull request Jul 8, 2025
* added test cases

* modified test cases

* added snapshots

* added mac and windows snapshots
github-actions bot pushed a commit that referenced this pull request Jul 8, 2025
* added test cases

* modified test cases

* added snapshots

* added mac and windows snapshots
github-actions bot pushed a commit that referenced this pull request Jul 9, 2025
* added test cases

* modified test cases

* added snapshots

* added mac and windows snapshots
@github-actions github-actions bot locked and limited conversation to collaborators Jul 25, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-controls-progressbar ProgressBar 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.

4 participants