Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSOE-799: Renaming SelectThemeAsync() to SetThemeDirectlyAsync() #340

Merged
merged 3 commits into from
Feb 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion Lombiq.Tests.UI/Extensions/ShortcutsUITestContextExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -444,10 +444,24 @@ public interface IShortcutsApi
}

/// <summary>
/// Selects theme by <paramref name="id"/>.
/// Selects theme by <paramref name="id"/> directly.
/// </summary>
/// <exception cref="ThemeNotFoundException">If no theme found with the given <paramref name="id"/>.</exception>
[Obsolete("Use SetThemeDirectlyAsync() instead. This method will be removed in a future version.")]
public static Task SelectThemeAsync(
this UITestContext context,
string id,
string tenant = null,
bool activateShell = true) =>
context.SetThemeDirectlyAsync(id, tenant, activateShell);

/// <summary>
/// Sets the current site or admin theme by <paramref name="id"/> directly, activating the theme without user interaction.
/// </summary>
/// <exception cref="ThemeNotFoundException">
/// Thrown if no theme was found with the given <paramref name="id"/>.
/// </exception>
public static Task SetThemeDirectlyAsync(
this UITestContext context,
string id,
string tenant = null,
Expand Down