Skip to content

Commit af4f40f

Browse files
committed
Added bigger screen size during e2e tests
1 parent 2dad6a9 commit af4f40f

File tree

2 files changed

+21
-6
lines changed

2 files changed

+21
-6
lines changed

src/NodeDev.EndToEndTests/Hooks/Hooks.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,14 @@ public async Task RegisterSingleInstancePractitioner()
8787
Headless = Environment.GetEnvironmentVariable("HEADLESS") == "true" // -> Use this option to be able to see your test running
8888
});
8989
//Setup a browser context
90-
var context1 = await browser.NewContextAsync();
90+
var context1 = await browser.NewContextAsync(new()
91+
{
92+
ViewportSize = new()
93+
{
94+
Width = 1900,
95+
Height = 1000
96+
}
97+
});
9198

9299
//Initialise a page on the browser context.
93100
User = await context1.NewPageAsync();

src/NodeDev.EndToEndTests/NodeDev.EndToEndTests.csproj

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,19 @@
66
<ImplicitUsings>enable</ImplicitUsings>
77
</PropertyGroup>
88

9+
<ItemGroup>
10+
<Compile Remove="Drivers\**" />
11+
<Compile Remove="Support\**" />
12+
<EmbeddedResource Remove="Drivers\**" />
13+
<EmbeddedResource Remove="Support\**" />
14+
<None Remove="Drivers\**" />
15+
<None Remove="Support\**" />
16+
<ReqnrollFeatureFiles Remove="Drivers\**" />
17+
<ReqnrollFeatureFiles Remove="Support\**" />
18+
<ReqnrollObsoleteCodeBehindFiles Remove="Drivers\**" />
19+
<ReqnrollObsoleteCodeBehindFiles Remove="Support\**" />
20+
</ItemGroup>
21+
922
<ItemGroup>
1023
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
1124
<PackageReference Include="Microsoft.Playwright.NUnit" Version="1.47.0" />
@@ -15,11 +28,6 @@
1528
<PackageReference Include="FluentAssertions" Version="6.12.1" />
1629
</ItemGroup>
1730

18-
<ItemGroup>
19-
<Folder Include="Drivers\" />
20-
<Folder Include="Support\" />
21-
</ItemGroup>
22-
2331
<ItemGroup>
2432
<ProjectReference Include="..\NodeDev.Blazor.Server\NodeDev.Blazor.Server.csproj" />
2533
</ItemGroup>

0 commit comments

Comments
 (0)