-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[Testing] Feature matrix UITest Cases for ContentView Control #31499
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 ContentView Control #31499
Conversation
Hey there @@LogishaSelvarajSF4525! 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). |
/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 comprehensive UI test coverage for the ContentView control by implementing a feature matrix test suite. The tests validate ContentView behavior across multiple properties including content types, visual properties, layout settings, and control templates.
- Adds a complete feature matrix UI test page with dynamic content switching and property configuration
- Implements 21 UI test cases covering ContentView properties like IsEnabled, IsVisible, BackgroundColor, FlowDirection, and custom bindings
- Creates reusable custom ContentView pages with control template support for thorough testing scenarios
Reviewed Changes
Copilot reviewed 10 out of 53 changed files in this pull request and generated no comments.
Show a summary per file
File | Description |
---|---|
ContentViewFeatureTests.cs | Main test class with 21 test methods validating ContentView behavior across different configurations |
ContentViewViewModel.cs | ViewModel implementing INotifyPropertyChanged for dynamic property binding and test configuration |
ContentViewSecondCustomPage.xaml/.cs | Second custom ContentView with bindable properties and control template support |
ContentViewOptionsPage.xaml/.cs | Configuration page allowing dynamic property changes during testing |
ContentViewFirstCustomPage.xaml/.cs | First custom ContentView with card-style layout and control template variations |
ContentViewControlPage.cs | Main navigation page orchestrating the feature matrix with dynamic content updates |
CorePageView.cs | Gallery integration adding ContentView Feature Matrix to the test app navigation |
This PR introduces a comprehensive set of UI test cases for the ContentView control, validating its behavior across a wide range of properties and interaction scenarios. The tests cover support for different content types such as Layout and ContentView ensuring they are displayed and updated correctly. The properties tested includeContent, IsEnabled, IsVisible, BackgroundColor, HeightRequest, WidthRequest, FlowDirection, HasShadow, ContentView, ControlTemplate as well as custom bindings like CardTitle, CardColor, IconImageSource, DefaultLabelText, and ContentLabel. In addition, the tests validate dynamic content replacement and binding updates, confirming consistent and reliable ContentView behavior across all supported platforms.
ContentView Control Feature Matrix
Gallery Page Addition
Options Page Implementation
Main Page Implementation
Issues Identified
Screen.Recording.2025-09-05.at.3.28.39.PM.mov