Skip to content

Commit

Permalink
Merge pull request #137 from Lombiq/issue/OSOE-935
Browse files Browse the repository at this point in the history
OSOE-935: Migrating test project to xUnit v3
  • Loading branch information
dministro authored Feb 13, 2025
2 parents d0b9735 + 8de5644 commit 2f9ee4d
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
</ItemGroup>

<ItemGroup Condition="'$(NuGetBuild)' == 'true'">
<PackageReference Include="Lombiq.Tests.UI" Version="12.1.0" />
<PackageReference Include="Lombiq.Tests.UI" Version="12.1.1-alpha.3.osoe-935" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@

<ItemGroup Condition="'$(NuGetBuild)' == 'true'">
<PackageReference Include="Lombiq.HelpfulLibraries.OrchardCore" Version="12.1.0" />
<PackageReference Include="Lombiq.HelpfulExtensions" Version="10.0.0" />
<PackageReference Include="Lombiq.HelpfulExtensions" Version="10.0.1-alpha.0.osoe-935" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
</ItemGroup>

<ItemGroup Condition="'$(NuGetBuild)' == 'true'">
<PackageReference Include="Lombiq.Tests.UI" Version="12.1.0" />
<PackageReference Include="Lombiq.Tests.UI" Version="12.1.1-alpha.3.osoe-935" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
</ItemGroup>

<ItemGroup Condition="'$(NuGetBuild)' == 'true'">
<PackageReference Include="Lombiq.Tests.UI" Version="12.1.0" />
<PackageReference Include="Lombiq.Tests.UI" Version="12.1.1-alpha.3.osoe-935" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ public static void ConfigureIdleTenantManagementTestSettings(this OrchardCoreUIT
(_, fakeLogCollectorOptions) => fakeLogCollectorOptions.FilteredLevels.Add(LogLevel.Information);

configuration.AssertAppLogsAsync = app =>
app.LogsShouldNotContainAsync(logEntry =>
AppLogAssertionHelper.NotMediaCacheEntries(logEntry) && logEntry.Level != LogLevel.Information);
app.LogsShouldNotContainAsync(
logEntry => AppLogAssertionHelper.NotMediaCacheEntries(logEntry) && logEntry.Level != LogLevel.Information,
configuration.TestCancellationToken);
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Lombiq.Tests.UI.Extensions;
using Lombiq.Tests.UI.Helpers;
using Lombiq.Tests.UI.Pages;
using Lombiq.Tests.UI.Services;
using System;
Expand Down Expand Up @@ -32,11 +31,11 @@ await context.GoToSetupPageAndSetupOrchardCoreAsync(
// Due to the background ask scheduling configuration in ConfigureIdleTenantManagementTestSettings(), the
// background task should run within not much more than a minute (background tasks are run with a frequency of
// at least a minute, due to the limitation of cron expressions). Polling for it here.
await Task.Delay(TimeSpan.FromMinutes(1));
await ReliabilityHelper.DoWithRetriesOrFailAsync(
await Task.Delay(TimeSpan.FromMinutes(1), context.Configuration.TestCancellationToken);
await context.DoWithRetriesOrFailAsync(
async () =>
{
var logEntries = await context.Application.GetLogEntriesFromAllLogsAsync();
var logEntries = await context.Application.GetLogEntriesFromAllLogsAsync(context.Configuration.TestCancellationToken);
return logEntries.Any(logEntry =>
logEntry.Message == $"Shutting down tenant \"{IdleTenantName}\" because of idle timeout.");
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
</ItemGroup>

<ItemGroup Condition="'$(NuGetBuild)' == 'true'">
<PackageReference Include="Lombiq.Tests.UI" Version="12.1.0" />
<PackageReference Include="Lombiq.Tests.UI" Version="12.1.1-alpha.3.osoe-935" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
</ItemGroup>

<ItemGroup Condition="'$(NuGetBuild)' == 'true'">
<PackageReference Include="Lombiq.Tests.UI" Version="12.1.0" />
<PackageReference Include="Lombiq.Tests.UI" Version="12.1.1-alpha.3.osoe-935" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
</ItemGroup>

<ItemGroup Condition="'$(NuGetBuild)' == 'true'">
<PackageReference Include="Lombiq.Tests.UI" Version="12.1.0" />
<PackageReference Include="Lombiq.Tests.UI" Version="12.1.1-alpha.3.osoe-935" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
</ItemGroup>

<ItemGroup Condition="'$(NuGetBuild)' == 'true'">
<PackageReference Include="Lombiq.Tests.UI" Version="12.0.1-alpha.1.osoe-815" />
<PackageReference Include="Lombiq.Tests.UI" Version="12.1.1-alpha.3.osoe-935" />
</ItemGroup>

</Project>

0 comments on commit 2f9ee4d

Please sign in to comment.