KEMBAR78
[Testing] Feature matrix UITest Cases for ImageButton Control by NafeelaNazhir · Pull Request #29968 · dotnet/maui · GitHub
Skip to content

Conversation

@NafeelaNazhir
Copy link
Contributor

This PR includes a comprehensive set of UI test cases for the ImageButton control. The tests validate the ImageButton control, including properties such as Aspect, Source, Padding, IsOpaque, Shadow, IsEnabled, FLowDirection, IsVisible, BorderWidth, CornerRadius, BorderColor

ImageButton Control Implementation

  • Gallery Page Addition:

    • Added a new ImageButtonControlPage to the list of gallery pages in CorePageView to display the feature matrix for the ImageButton control. (src/Controls/tests/TestCases.HostApp/CoreViews/CorePageView.cs)
  • Main Page Implementation:

    • Created ImageButtonControlMainPage.xaml and its code-behind file to define the main page for testing ImageButton features. The page includes an ImageButton with various bindable properties and event handlers for Clicked, Pressed, and Released events. (src/Controls/tests/TestCases.HostApp/FeatureMatrix/ImageButton/ImageButtonControlPage.xaml, src/Controls/tests/TestCases.HostApp/FeatureMatrix/ImageButton/ImageButtonControlPage.xaml.cs) [1] [2]
  • Options Page Implementation:

    • Added ImageButtonOptionsPage.xaml to provide a UI for configuring ImageButton properties such as Aspect, Source, BorderWidth, CornerRadius, FlowDirection, and more. This page allows dynamic testing of different configurations. (src/Controls/tests/TestCases.HostApp/FeatureMatrix/ImageButton/ImageButtonOptionsPage.xaml)

Issues Identified

Screen.Recording.2025-06-12.at.7.17.33.PM.mov

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

Hey there @@NafeelaNazhir! 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 12, 2025
@NafeelaNazhir NafeelaNazhir added the area-testing Unit tests, device tests label Jun 12, 2025
@NafeelaNazhir NafeelaNazhir marked this pull request as ready for review June 13, 2025 09:58
@Copilot Copilot AI review requested due to automatic review settings June 13, 2025 09:58
@NafeelaNazhir NafeelaNazhir requested a review from a team as a code owner June 13, 2025 09:58
Copy link
Contributor

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 adds a complete set of UI test cases for the ImageButton control, including a dedicated test page, options configuration, and integration with the gallery page.

  • Introduces a new ImageButtonViewModel to support binding for various ImageButton properties.
  • Implements ImageButton test pages (main and options) and integrates them into the core gallery.

Reviewed Changes

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

Show a summary per file
File Description
ImageButtonViewModel.cs Provides binding and command handling for ImageButton properties.
ImageButtonOptionsPage.xaml.cs Implements the code-behind for configuring ImageButton options.
ImageButtonOptionsPage.xaml Defines the UI layout for ImageButton options.
ImageButtonControlPage.xaml.cs & .xaml Implements the main test page and navigation logic for the ImageButton tests.
CorePageView.cs Updates the gallery page collection to include the new ImageButton test page.

@jsuarezruiz
Copy link
Contributor

/azp run MAUI-UITests-public

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

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 Windows:
image
Already available in the latest build, could you commit the images?

@NafeelaNazhir
Copy link
Contributor Author

Pending snapshots for 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

@azure-pipelines
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:18
@PureWeen PureWeen merged commit e8495b1 into dotnet:inflight/current Jun 24, 2025
PureWeen added a commit that referenced this pull request Jun 25, 2025
* Added ImageButton Feature tests

* Changes updated

* Modified tests

* Added Images

* Modified image

* Added images

---------

Co-authored-by: Shane Neuville <shneuvil@microsoft.com>
github-actions bot pushed a commit that referenced this pull request Jun 26, 2025
* Added ImageButton Feature tests

* Changes updated

* Modified tests

* Added Images

* Modified image

* Added images

---------

Co-authored-by: Shane Neuville <shneuvil@microsoft.com>
PureWeen added a commit that referenced this pull request Jun 27, 2025
* Added ImageButton Feature tests

* Changes updated

* Modified tests

* Added Images

* Modified image

* Added images

---------

Co-authored-by: Shane Neuville <shneuvil@microsoft.com>
PureWeen added a commit that referenced this pull request Jun 28, 2025
* Added ImageButton Feature tests

* Changes updated

* Modified tests

* Added Images

* Modified image

* Added images

---------

Co-authored-by: Shane Neuville <shneuvil@microsoft.com>
github-actions bot pushed a commit that referenced this pull request Jun 29, 2025
* Added ImageButton Feature tests

* Changes updated

* Modified tests

* Added Images

* Modified image

* Added images

---------

Co-authored-by: Shane Neuville <shneuvil@microsoft.com>
github-actions bot pushed a commit that referenced this pull request Jun 29, 2025
* Added ImageButton Feature tests

* Changes updated

* Modified tests

* Added Images

* Modified image

* Added images

---------

Co-authored-by: Shane Neuville <shneuvil@microsoft.com>
github-actions bot pushed a commit that referenced this pull request Jul 1, 2025
* Added ImageButton Feature tests

* Changes updated

* Modified tests

* Added Images

* Modified image

* Added images

---------

Co-authored-by: Shane Neuville <shneuvil@microsoft.com>
github-actions bot pushed a commit that referenced this pull request Jul 2, 2025
* Added ImageButton Feature tests

* Changes updated

* Modified tests

* Added Images

* Modified image

* Added images

---------

Co-authored-by: Shane Neuville <shneuvil@microsoft.com>
github-actions bot pushed a commit that referenced this pull request Jul 2, 2025
* Added ImageButton Feature tests

* Changes updated

* Modified tests

* Added Images

* Modified image

* Added images

---------

Co-authored-by: Shane Neuville <shneuvil@microsoft.com>
github-actions bot pushed a commit that referenced this pull request Jul 8, 2025
* Added ImageButton Feature tests

* Changes updated

* Modified tests

* Added Images

* Modified image

* Added images

---------

Co-authored-by: Shane Neuville <shneuvil@microsoft.com>
github-actions bot pushed a commit that referenced this pull request Jul 8, 2025
* Added ImageButton Feature tests

* Changes updated

* Modified tests

* Added Images

* Modified image

* Added images

---------

Co-authored-by: Shane Neuville <shneuvil@microsoft.com>
github-actions bot pushed a commit that referenced this pull request Jul 9, 2025
* Added ImageButton Feature tests

* Changes updated

* Modified tests

* Added Images

* Modified image

* Added images

---------

Co-authored-by: Shane Neuville <shneuvil@microsoft.com>
@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-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