Skip to content

Conversation

LogishaSelvarajSF4525
Copy link
Contributor

@LogishaSelvarajSF4525 LogishaSelvarajSF4525 commented Sep 5, 2025

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

  • Integrated a new GalleryPageFactory entry for ContentViewControlPage into CorePageView.cs.
  • Enables easy navigation to the feature matrix page showcasing ContentView control functionality within the test app.

Options Page Implementation

  • Created ContentViewOptionsPage.xaml to provide a UI for dynamic interaction with ContentView properties.
  • The options page includes:
    • Configuration for switching child content.
    • Toggle support for visual properties like background, border, visibility, and enabled state.
    • Binding support for content updates and lifecycle events.

Main Page Implementation

  • Added ContentViewControlPage.xaml.cs, which includes:
  • Initialization of ContentViewViewModel for dynamic property and event binding.
  • Methods to generate and update child content dynamically based on user selections.
  • Handlers for applying bindings, property changes, and refreshing content.
  • Event tracking for testing ContentView lifecycle behavior and property updates.

Issues Identified

Screen.Recording.2025-09-05.at.3.28.39.PM.mov

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

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.

@dotnet-policy-service dotnet-policy-service bot added the partner/syncfusion Issues / PR's with Syncfusion collaboration label Sep 5, 2025
@jsuarezruiz
Copy link
Contributor

/azp run MAUI-UITests-public

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jsuarezruiz jsuarezruiz added area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter area-testing Unit tests, device tests labels Sep 5, 2025
@jsuarezruiz
Copy link
Contributor

/azp run MAUI-UITests-public

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@LogishaSelvarajSF4525 LogishaSelvarajSF4525 marked this pull request as ready for review September 10, 2025 17:20
@Copilot Copilot AI review requested due to automatic review settings September 10, 2025 17:20
@LogishaSelvarajSF4525 LogishaSelvarajSF4525 requested a review from a team as a code owner September 10, 2025 17:20
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 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

@PureWeen PureWeen changed the base branch from main to inflight/current September 11, 2025 17:43
@PureWeen PureWeen merged commit b080956 into dotnet:inflight/current Sep 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter 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.

3 participants