Skip to content

Commit 07b5a33

Browse files
committed
Update integration test project files
1 parent 8336175 commit 07b5a33

3 files changed

Lines changed: 16 additions & 19 deletions

File tree

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
<Router AppAssembly="@typeof(Program).Assembly" PreferExactMatches="@true">
1+
<Router AppAssembly="@typeof(App).Assembly">
22
<Found Context="routeData">
33
<RouteView RouteData="@routeData" />
4+
<FocusOnNavigate RouteData="@routeData" Selector="h1" />
45
</Found>
56
<NotFound>
7+
<PageTitle>Not found</PageTitle>
68
<LayoutView>
7-
<p>Sorry, there's nothing at this address.</p>
9+
<p role="alert">Sorry, there's nothing at this address.</p>
810
</LayoutView>
911
</NotFound>
1012
</Router>
Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,14 @@
1-
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
1+
using Microsoft.AspNetCore.Components.Web;
2+
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
3+
using WebExtensions.Net.BrowserExtensionIntegrationTest;
24
using WebExtensions.Net.BrowserExtensionIntegrationTest.Infrastructure;
35

4-
namespace WebExtensions.Net.BrowserExtensionIntegrationTest
5-
{
6-
public static class Program
7-
{
8-
public static async Task Main(string[] args)
9-
{
10-
var builder = WebAssemblyHostBuilder.CreateDefault(args);
11-
builder.RootComponents.Add<App>("#app");
6+
var builder = WebAssemblyHostBuilder.CreateDefault(args);
7+
builder.RootComponents.Add<App>("#app");
8+
builder.RootComponents.Add<HeadOutlet>("head::after");
129

13-
builder.Services.AddWebExtensions();
14-
builder.Services.AddScoped<ITestFactory, TestFactory>();
15-
builder.Services.AddScoped<ITestRunner, TestRunner>();
10+
builder.Services.AddWebExtensions();
11+
builder.Services.AddScoped<ITestFactory, TestFactory>();
12+
builder.Services.AddScoped<ITestRunner, TestRunner>();
1613

17-
await builder.Build().RunAsync();
18-
}
19-
}
20-
}
14+
await builder.Build().RunAsync();

test/WebExtensions.Net.BrowserExtensionIntegrationTest/WebExtensions.Net.BrowserExtensionIntegrationTest.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<PropertyGroup>
44
<TargetFramework>net9.0</TargetFramework>
55
<BlazorEnableCompression>false</BlazorEnableCompression>
6+
<Nullable>enable</Nullable>
67
<ImplicitUsings>true</ImplicitUsings>
78
<!-- Disable conversion of DLLs to webcil-in-wasm format, fingerprinting, compression. This is for coverlet to inject the hits counter into the assembly which only works for DLLs with PDBs. -->
89
<WasmEnableWebcil>false</WasmEnableWebcil>
@@ -15,7 +16,7 @@
1516
</ItemGroup>
1617

1718
<ItemGroup>
18-
<PackageReference Include="Blazor.BrowserExtension.Build" Version="2.0.2" />
19+
<PackageReference Include="Blazor.BrowserExtension.Build" Version="3.1.2" />
1920
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="9.0.1" />
2021
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="9.0.1" PrivateAssets="all" />
2122
<PackageReference Include="Shouldly" Version="4.3.0" />

0 commit comments

Comments
 (0)