Skip to content

Commit c680563

Browse files
authored
Allow to use Theme changes actions on Catalyst (#28181)
1 parent 6522a39 commit c680563

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

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

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1643,11 +1643,6 @@ public static TestDevice GetTestDevice(this IApp app)
16431643
/// <param name="app">Represents the main gateway to interact with an app.</param>
16441644
public static void SetLightTheme(this IApp app)
16451645
{
1646-
if (app is AppiumCatalystApp)
1647-
{
1648-
throw new InvalidOperationException($"SetLightTheme is not supported");
1649-
}
1650-
16511646
app.CommandExecutor.Execute("setLightTheme", ImmutableDictionary<string, object>.Empty);
16521647
}
16531648

@@ -1657,11 +1652,6 @@ public static void SetLightTheme(this IApp app)
16571652
/// <param name="app">Represents the main gateway to interact with an app.</param>
16581653
public static void SetDarkTheme(this IApp app)
16591654
{
1660-
if (app is AppiumCatalystApp)
1661-
{
1662-
throw new InvalidOperationException($"SetDarkTheme is not supported");
1663-
}
1664-
16651655
app.CommandExecutor.Execute("setDarkTheme", ImmutableDictionary<string, object>.Empty);
16661656
}
16671657

0 commit comments

Comments
 (0)