diff --git a/Lombiq.Tests.UI.Samples/Tests/BasicTests.cs b/Lombiq.Tests.UI.Samples/Tests/BasicTests.cs index 0a3473161..1acbbdf84 100644 --- a/Lombiq.Tests.UI.Samples/Tests/BasicTests.cs +++ b/Lombiq.Tests.UI.Samples/Tests/BasicTests.cs @@ -126,6 +126,9 @@ public Task ApplicationInsightsTrackingShouldBePresent(Browser browser) => ExecuteTestAfterSetupAsync( async context => { + await context.EnableFeatureDirectlyAsync("Lombiq.Privacy.ConsentBanner"); + await context.GoToHomePageAsync(); + // Now there's a bit of a pickle though: The Lombiq Privacy module is also enabled from the test recipe // and shows its privacy consent banner. For tracking to be enabled, even in offline mode, the user // needs to give consent. This is what we do now: diff --git a/Lombiq.Tests.UI.Shortcuts/Controllers/ShellFeaturesController.cs b/Lombiq.Tests.UI.Shortcuts/Controllers/ShellFeaturesController.cs index e8d28a1e7..6d22994f4 100644 --- a/Lombiq.Tests.UI.Shortcuts/Controllers/ShellFeaturesController.cs +++ b/Lombiq.Tests.UI.Shortcuts/Controllers/ShellFeaturesController.cs @@ -1,4 +1,5 @@ using Lombiq.HelpfulLibraries.Libraries.Mvc; +using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using OrchardCore.Environment.Extensions; using OrchardCore.Environment.Extensions.Features; @@ -10,6 +11,7 @@ namespace Lombiq.Tests.UI.Shortcuts.Controllers; [DevelopmentAndLocalhostOnly] +[AllowAnonymous] public class ShellFeaturesController : Controller { private readonly IShellFeaturesManager _shellFeatureManager; diff --git a/Lombiq.Tests.UI/Services/OrchardCoreInstance.cs b/Lombiq.Tests.UI/Services/OrchardCoreInstance.cs index 9a36bab9a..6ad4fc531 100644 --- a/Lombiq.Tests.UI/Services/OrchardCoreInstance.cs +++ b/Lombiq.Tests.UI/Services/OrchardCoreInstance.cs @@ -141,7 +141,7 @@ public async Task StartUpAsync() argumentsBuilder = argumentsBuilder .Add("--urls").Add(url) .Add("--contentRoot").Add(_contentRootPath) - .Add("--webroot=").Add(Path.Combine(_contentRootPath, "wwwroot")) + .Add("--webroot").Add(Path.Combine(_contentRootPath, "wwwroot")) .Add("--environment").Add("Development"); if (!useExeToExecuteApp) argumentsBuilder = argumentsBuilder.Add(_configuration.AppAssemblyPath);