diff --git a/Lombiq.Tests.UI.Samples/Lombiq.Tests.UI.Samples.csproj b/Lombiq.Tests.UI.Samples/Lombiq.Tests.UI.Samples.csproj
index 9f3b8b9a1..f9f6942ea 100644
--- a/Lombiq.Tests.UI.Samples/Lombiq.Tests.UI.Samples.csproj
+++ b/Lombiq.Tests.UI.Samples/Lombiq.Tests.UI.Samples.csproj
@@ -23,8 +23,8 @@
-
-
+
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
diff --git a/Lombiq.Tests.UI/Extensions/IWebApplicationInstanceExtensions.cs b/Lombiq.Tests.UI/Extensions/IWebApplicationInstanceExtensions.cs
index ee5a98876..5ab63efe5 100644
--- a/Lombiq.Tests.UI/Extensions/IWebApplicationInstanceExtensions.cs
+++ b/Lombiq.Tests.UI/Extensions/IWebApplicationInstanceExtensions.cs
@@ -49,8 +49,7 @@ public static async Task UsingScopeAsync(
// Creating a fake HttpContext like in ModularBackgroundService.
httpContextAccessor.HttpContext = shellScope.ShellContext.CreateHttpContext();
var httpContext = httpContextAccessor.HttpContext;
-
- httpContext.Request.PathBase = "/" + shellHost.GetSettings(tenant).RequestUrlPrefix ?? string.Empty;
+ httpContext.Request.PathBase = "/" + shellHost.GetSettings(tenant).RequestUrlPrefix;
httpContext.Features.Set(new RecipeEnvironmentFeature());
await shellScope.UsingAsync(execute, activateShell);
diff --git a/Lombiq.Tests.UI/Lombiq.Tests.UI.csproj b/Lombiq.Tests.UI/Lombiq.Tests.UI.csproj
index 66906553f..61bd65ca6 100644
--- a/Lombiq.Tests.UI/Lombiq.Tests.UI.csproj
+++ b/Lombiq.Tests.UI/Lombiq.Tests.UI.csproj
@@ -51,14 +51,14 @@
-
+
-
+
-
-
+
+
-
+
@@ -68,12 +68,12 @@
-
+
-
+
diff --git a/Lombiq.Tests.UI/Models/SafeWaitAsync.cs b/Lombiq.Tests.UI/Models/SafeWaitAsync.cs
index 46fc061c7..c865cbcdc 100644
--- a/Lombiq.Tests.UI/Models/SafeWaitAsync.cs
+++ b/Lombiq.Tests.UI/Models/SafeWaitAsync.cs
@@ -130,9 +130,9 @@ public async Task UntilAsync(Func> condition)
protected virtual bool DoesConditionResultSatisfy(TResult result)
{
- if (typeof(TResult) == typeof(bool))
+ if (result is bool resultBool)
{
- if (result is true) return true;
+ if (resultBool) return true;
}
else if (!Equals(result, default(TResult)) &&
(result is not IEnumerable enumerable || enumerable.Cast