maui icon indicating copy to clipboard operation
maui copied to clipboard

[Testing] Feature Matrix UITest Cases for Switch Control

Open TamilarasanSF4853 opened this issue 5 months ago • 6 comments
trafficstars

This PR includes a comprehensive set of UI test cases for the Switch control. The tests validate the Switch control, including properties such as IsToggled, OnColor, ThumbColor, IsEnabled, IsVisible, FlowDirection, and Shadow.

Switch Control Implementation:

  • Added SwitchControlMainPage to host the Switch control, with bindings for properties like IsToggled, OnColor, ThumbColor, IsEnabled, IsVisible, FlowDirection, and Shadow, and event handlers for the Toggled event.

  • Created SwitchOptionsPage to allow users to configure Switch properties interactively, including IsToggled, OnColor, ThumbColor, IsEnabled, IsVisible, FlowDirection, and Shadow.

  • Added event handlers for property changes in SwitchOptionsPage.xaml.cs to update the Switch control dynamically through a ViewModel pattern.

  • Implemented a suite of UI tests in SwitchFeatureTests to validate property updates, event handling (Toggled), disabled and visibility states, color configurations (OnColor, ThumbColor), flow direction, and shadow behavior. Used VerifyScreenshot() for visual verification across property configurations and platforms.

https://github.com/user-attachments/assets/b36583b3-a01b-4fc5-b756-b864bbb85566

TamilarasanSF4853 avatar Jun 12 '25 06:06 TamilarasanSF4853

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

jsuarezruiz avatar Jun 13 '25 10:06 jsuarezruiz

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Jun 13 '25 10:06 azure-pipelines[bot]

Pending snapshots for Mac and Windows. image

Could you commit the images?

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

TamilarasanSF4853 avatar Jun 17 '25 06:06 TamilarasanSF4853

/azp run MAUI-UITests-public

jsuarezruiz avatar Jun 17 '25 13:06 jsuarezruiz

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Jun 17 '25 13:06 azure-pipelines[bot]

/azp run MAUI-UITests-public

jsuarezruiz avatar Jun 20 '25 09:06 jsuarezruiz

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Jun 20 '25 09:06 azure-pipelines[bot]