Skip to content

Commit

Permalink
Better UI testing config
Browse files Browse the repository at this point in the history
  • Loading branch information
Piedone committed Jan 26, 2024
1 parent 35fc84a commit 9064709
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 13 deletions.
5 changes: 3 additions & 2 deletions src/DotNest.Core.SDK.Web/DotNest.Core.SDK.Web.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
Expand Down Expand Up @@ -35,7 +35,8 @@
<PackageReference Include="Lombiq.SetupExtensions" Version="5.0.0" />
<PackageReference Include="Lombiq.Hosting.MediaTheme" Version="5.0.1-alpha.1.osoe-775" />
<PackageReference Include="Lombiq.Hosting.MediaTheme.Bridge" Version="5.0.1-alpha.1.osoe-775" />
<PackageReference Include="Lombiq.Tests.UI.Shortcuts" Version="8.2.1-alpha.6.osoe-351" />
<PackageReference Include="Lombiq.Tests.UI.AppExtensions" Version="8.2.1-alpha.13.tdeal-16" />
<PackageReference Include="Lombiq.Tests.UI.Shortcuts" Version="8.2.1-alpha.13.tdeal-16" />
<PackageReference Include="Lombiq.Walkthroughs" Version="1.0.0-alpha.1.lmbq-113" />
</ItemGroup>

Expand Down
13 changes: 3 additions & 10 deletions src/DotNest.Core.SDK.Web/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,11 @@
builder.Services
.AddSingleton(configuration)
.AddOrchardCms(orchardCoreBuilder =>
{
orchardCoreBuilder
.AddDatabaseShellsConfigurationIfAvailable(configuration)
.ConfigureSmtpSettings(overrideAdminSettings: false);
if (builder.Environment.IsDevelopment())
{
orchardCoreBuilder
.AddSetupFeatures("OrchardCore.AutoSetup")
.HideRecipesByTagsFromSetup("test", "HideFromSetupScreen");
}
});
.ConfigureSmtpSettings(overrideAdminSettings: false)
.EnableAutoSetupIfNotUITesting(configuration)
.HideRecipesByTagsFromSetup("test", "HideFromSetupScreen"));

var app = builder.Build();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.3.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5" />
<PackageReference Include="Lombiq.Tests.UI" Version="8.2.1-alpha.6.osoe-351" />
<PackageReference Include="Lombiq.Tests.UI" Version="8.2.1-alpha.13.tdeal-16" />
<PackageReference Include="Lombiq.Analyzers" Version="3.3.0" />
</ItemGroup>

Expand Down

0 comments on commit 9064709

Please sign in to comment.