From 90d2bc6a7cbce930a324d1658c07f3d8e29c316d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A1ra=20El-Saig?= Date: Thu, 21 Nov 2024 11:37:17 +0100 Subject: [PATCH] Rename SetShiftTimeAsync to SetTimeShiftAsync. --- Lombiq.Tests.UI.Samples/Tests/ShiftTimeTests.cs | 2 +- .../Extensions/ShortcutsUITestContextExtensions.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Lombiq.Tests.UI.Samples/Tests/ShiftTimeTests.cs b/Lombiq.Tests.UI.Samples/Tests/ShiftTimeTests.cs index d73941f69..f96809215 100644 --- a/Lombiq.Tests.UI.Samples/Tests/ShiftTimeTests.cs +++ b/Lombiq.Tests.UI.Samples/Tests/ShiftTimeTests.cs @@ -46,7 +46,7 @@ await context.FillInCodeMirrorEditorWithRetriesAsync( // This extension method navigates to the action which sets the time offset. You can set it in terms of // days or seconds. Both accept fractions and negative values. If both days and seconds are set, they // are added together. - await context.SetShiftTimeAsync(TimeSpan.FromDays(10)); + await context.SetTimeShiftAsync(TimeSpan.FromDays(10)); // Let's verify the date! var tenDaysFromNow = await GetNowAsync(context); diff --git a/Lombiq.Tests.UI/Extensions/ShortcutsUITestContextExtensions.cs b/Lombiq.Tests.UI/Extensions/ShortcutsUITestContextExtensions.cs index 53de816e7..78974168f 100644 --- a/Lombiq.Tests.UI/Extensions/ShortcutsUITestContextExtensions.cs +++ b/Lombiq.Tests.UI/Extensions/ShortcutsUITestContextExtensions.cs @@ -746,7 +746,7 @@ public static Task ExecuteJsonRecipeSiteSettingAsync(this UITestContext conte /// /// Sets the time shift to a specific value. /// - public static Task SetShiftTimeAsync(this UITestContext context, TimeSpan time) + public static Task SetTimeShiftAsync(this UITestContext context, TimeSpan time) { context.EnsureValidOrchardCoreTenantScope(); return time.TotalDays >= 1.0 @@ -757,7 +757,7 @@ public static Task SetShiftTimeAsync(this UITestContext context, TimeSpan time) /// /// Adds the specified value to the time shift. /// - public static Task AddShiftTimeAsync(this UITestContext context, TimeSpan time) + public static Task AddTimeShiftAsync(this UITestContext context, TimeSpan time) { context.EnsureValidOrchardCoreTenantScope(); return time.TotalDays >= 1.0