Skip to content

[Testing] Allow to use Theme changes actions on Catalyst#28181

Merged
jfversluis merged 1 commit intomainfrom
uitest-allow-themeactions-mac
Mar 28, 2025
Merged

[Testing] Allow to use Theme changes actions on Catalyst#28181
jfversluis merged 1 commit intomainfrom
uitest-allow-themeactions-mac

Conversation

@jsuarezruiz
Copy link
Copy Markdown
Contributor

Description of Change

Allow to use Theme changes actions on Catalyst. After include:

public class AppiumCatalystThemeChangeAction : ICommandExecutionGroup
we can allow to use Theme changes actions on Catalyst.

Copilot AI review requested due to automatic review settings March 5, 2025 11:29
@jsuarezruiz jsuarezruiz requested a review from a team as a code owner March 5, 2025 11:29
Copy link
Copy Markdown
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.

PR Overview

A concise update to allow theme change actions on Catalyst by removing the unsupported exception for AppiumCatalystApp instances.

  • Removed exception throw in SetLightTheme for Catalyst apps.
  • Removed exception throw in SetDarkTheme for Catalyst apps.

Reviewed Changes

File Description
src/TestUtils/src/UITest.Appium/HelperExtensions.cs Removed unsupported exception checks to allow theme change actions on Catalyst.

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

Comments suppressed due to low confidence (2)

src/TestUtils/src/UITest.Appium/HelperExtensions.cs:1643

  • The removal of the AppiumCatalystApp check in SetLightTheme implies that theme changes are now supported on Catalyst. Please ensure there are corresponding test cases in TestCases.HostApp and TestCases.Shared.Tests that validate this behavior.
if (app is AppiumCatalystApp)

src/TestUtils/src/UITest.Appium/HelperExtensions.cs:1652

  • The removal of the AppiumCatalystApp check in SetDarkTheme now enables theme changes on Catalyst. Please ensure that test cases exist in TestCases.HostApp and TestCases.Shared.Tests to cover this new behavior.
if (app is AppiumCatalystApp)

@jfversluis jfversluis merged commit c680563 into main Mar 28, 2025
123 checks passed
@jfversluis jfversluis deleted the uitest-allow-themeactions-mac branch March 28, 2025 13:06
@github-actions github-actions bot locked and limited conversation to collaborators Apr 28, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants