diff --git a/.azure/pipelines/components-e2e-tests.yml b/.azure/pipelines/components-e2e-tests.yml
index 322649488141..ed817d303921 100644
--- a/.azure/pipelines/components-e2e-tests.yml
+++ b/.azure/pipelines/components-e2e-tests.yml
@@ -42,6 +42,7 @@ stages:
cancelTimeoutInMinutes: 30
buildArgs: -all -test /p:SkipHelixReadyTests=true /p:SkipIISNewHandlerTests=true /p:SkipIISTests=true
/p:SkipIISExpressTests=true /p:SkipIISNewShimTests=true /p:RunTemplateTests=false
+ /p:RunQuarantinedTests=true
beforeBuild:
- powershell: "& ./src/Servers/IIS/tools/UpdateIISExpressCertificate.ps1; & ./src/Servers/IIS/tools/update_schema.ps1"
displayName: Setup IISExpress test certificates and schema
diff --git a/src/Components/test/E2ETest/Infrastructure/WebDriverExtensions/WebDriverExtensions.cs b/src/Components/test/E2ETest/Infrastructure/WebDriverExtensions/WebDriverExtensions.cs
index 0d0067f6c1c2..969082ceb896 100644
--- a/src/Components/test/E2ETest/Infrastructure/WebDriverExtensions/WebDriverExtensions.cs
+++ b/src/Components/test/E2ETest/Infrastructure/WebDriverExtensions/WebDriverExtensions.cs
@@ -15,15 +15,6 @@ public static void Navigate(this IWebDriver browser, Uri baseUri, string relativ
{
var absoluteUrl = new Uri(baseUri, relativeUrl);
- if (noReload)
- {
- var existingUrl = browser.Url;
- if (string.Equals(existingUrl, absoluteUrl.AbsoluteUri, StringComparison.Ordinal))
- {
- return;
- }
- }
-
browser.Navigate().GoToUrl("about:blank");
browser.Navigate().GoToUrl(absoluteUrl);
}
diff --git a/src/Components/test/E2ETest/ServerExecutionTests/CircuitGracefulTerminationTests.cs b/src/Components/test/E2ETest/ServerExecutionTests/CircuitGracefulTerminationTests.cs
index 0665d6346d23..1b326af871ea 100644
--- a/src/Components/test/E2ETest/ServerExecutionTests/CircuitGracefulTerminationTests.cs
+++ b/src/Components/test/E2ETest/ServerExecutionTests/CircuitGracefulTerminationTests.cs
@@ -26,6 +26,8 @@ public CircuitGracefulTerminationTests(
ITestOutputHelper output)
: base(browserFixture, serverFixture, output)
{
+ // The browser won't send the disconnection message if it's headless
+ browserFixture.EnsureNotHeadless = true;
}
public TaskCompletionSource
-
- DateTime (format):
-
- @textboxDateTimeFormatValue
-
-
DateTime (format / invalid value):
diff --git a/src/Components/test/testassets/TestServer/Controllers/CultureController.cs b/src/Components/test/testassets/TestServer/Controllers/CultureController.cs
index 735191d92863..93f02a1f7ea8 100644
--- a/src/Components/test/testassets/TestServer/Controllers/CultureController.cs
+++ b/src/Components/test/testassets/TestServer/Controllers/CultureController.cs
@@ -22,8 +22,8 @@ public IActionResult SetCulture(string culture, string redirectUri)
}
var htmlEncoder = HtmlEncoder.Default;
- var html = $"
Culture has been changed to {htmlEncoder.Encode(culture)}
" +
- $"Return to previous page";
+ var html = "Culture has been changed to " + htmlEncoder.Encode(culture) + "
" +
+ "Return to previous page";
return Content(html, "text/html");
}
}
diff --git a/src/Components/test/testassets/TestServer/Pages/Transports.cshtml b/src/Components/test/testassets/TestServer/Pages/Transports.cshtml
index 6bf003a7b693..2476db63eb8b 100644
--- a/src/Components/test/testassets/TestServer/Pages/Transports.cshtml
+++ b/src/Components/test/testassets/TestServer/Pages/Transports.cshtml
@@ -1,6 +1,13 @@
@page
@addTagHelper "*, Microsoft.AspNetCore.Mvc.TagHelpers"
+
+
+
+
+
+
+
@@ -58,3 +65,5 @@
});
}
+
+
diff --git a/src/Shared/E2ETesting/BrowserFixture.cs b/src/Shared/E2ETesting/BrowserFixture.cs
index 6f1729619697..6911226e5578 100644
--- a/src/Shared/E2ETesting/BrowserFixture.cs
+++ b/src/Shared/E2ETesting/BrowserFixture.cs
@@ -35,6 +35,8 @@ public BrowserFixture(IMessageSink diagnosticsMessageSink)
public string UserProfileDir { get; private set; }
+ public bool EnsureNotHeadless { get; set; }
+
public static void EnforceSupportedConfigurations()
{
// Do not change the current platform support without explicit approval.
@@ -143,7 +145,8 @@ private async Task DeleteBrowserUserProfileDirectoriesAsync()
// Force language to english for tests
opts.AddUserProfilePreference("intl.accept_languages", "en");
- if (!Debugger.IsAttached &&
+ if (!EnsureNotHeadless &&
+ !Debugger.IsAttached &&
!string.Equals(Environment.GetEnvironmentVariable("E2E_TEST_VISIBLE"), "true", StringComparison.OrdinalIgnoreCase))
{
opts.AddArgument("--headless");