Skip to content

Commit ffd304a

Browse files
Use new Chromium headless mode to fix E2E test timeouts (#46812) (#47082)
Co-authored-by: Steve Sanderson <[email protected]>
1 parent 02f1964 commit ffd304a

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

src/Components/test/E2ETest/Tests/CircuitTests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
using Microsoft.AspNetCore.Components.E2ETest.Infrastructure;
66
using Microsoft.AspNetCore.Components.E2ETest.Infrastructure.ServerFixtures;
77
using Microsoft.AspNetCore.E2ETesting;
8+
using Microsoft.AspNetCore.Testing;
89
using OpenQA.Selenium;
910
using TestServer;
1011
using Xunit.Abstractions;
@@ -34,6 +35,7 @@ protected override void InitializeAsyncCore()
3435
[InlineData("render-throw")]
3536
[InlineData("afterrender-sync-throw")]
3637
[InlineData("afterrender-async-throw")]
38+
[QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/46836")]
3739
public void ComponentLifecycleMethodThrowsExceptionTerminatesTheCircuit(string id)
3840
{
3941
Browser.MountTestComponent<ReliabilityComponent>();
@@ -52,6 +54,7 @@ public void ComponentLifecycleMethodThrowsExceptionTerminatesTheCircuit(string i
5254
}
5355

5456
[Fact]
57+
[QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/46836")]
5558
public void ComponentDisposeMethodThrowsExceptionTerminatesTheCircuit()
5659
{
5760
Browser.MountTestComponent<ReliabilityComponent>();

src/Components/test/E2ETest/Tests/ComponentRenderingTestBase.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,7 @@ public void CanUseFocusExtensionToFocusSvgElement()
427427
}
428428

429429
[Fact]
430+
[QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/46835")]
430431
public void CanUseFocusExtensionToFocusElementPreventScroll()
431432
{
432433
Browser.Manage().Window.Size = new System.Drawing.Size(100, 300);

src/Shared/E2ETesting/BrowserFixture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ private async Task DeleteBrowserUserProfileDirectoriesAsync()
148148
!Debugger.IsAttached &&
149149
!string.Equals(Environment.GetEnvironmentVariable("E2E_TEST_VISIBLE"), "true", StringComparison.OrdinalIgnoreCase))
150150
{
151-
opts.AddArgument("--headless");
151+
opts.AddArgument("--headless=new");
152152
}
153153

154154
opts.AddArgument("--no-sandbox");

src/Shared/E2ETesting/selenium-config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"drivers": {
33
"chrome": {
4-
"version" : "106.0.5249.21"
4+
"version" : "110.0.5481.77"
55
}
66
},
77
"ignoreExtraDrivers": true

0 commit comments

Comments
 (0)