-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[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
[Testing] Feature Matrix UITest Cases for ProgressBar Control #29980
Conversation
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. |
/azp run MAUI-UITests-public |
Azure Pipelines successfully started running 1 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.
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"/>
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.
Hi @jsuarezruiz I have added the pending snapshots in the latest commit. |
/azp run MAUI-UITests-public |
Azure Pipelines successfully started running 1 pipeline(s). |
* added test cases * modified test cases * added snapshots * added mac and windows snapshots
* added test cases * modified test cases * added snapshots * added mac and windows snapshots
* added test cases * modified test cases * added snapshots * added mac and windows snapshots
* added test cases * modified test cases * added snapshots * added mac and windows snapshots
* added test cases * modified test cases * added snapshots * added mac and windows snapshots
* added test cases * modified test cases * added snapshots * added mac and windows snapshots
* added test cases * modified test cases * added snapshots * added mac and windows snapshots
* added test cases * modified test cases * added snapshots * added mac and windows snapshots
* added test cases * modified test cases * added snapshots * added mac and windows snapshots
* added test cases * modified test cases * added snapshots * added mac and windows snapshots
* added test cases * modified test cases * added snapshots * added mac and windows snapshots
* added test cases * modified test cases * added snapshots * added mac and windows snapshots
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