Skip to content
代码片段 群组 项目
未验证 提交 dcd32c0d 编辑于 作者: Pranav K's avatar Pranav K 提交者: GitHub
浏览文件

Quarantine tests (#23598)

* Quarantine tests

* Quarantine shutdowntest
上级 b4a37194
No related branches found
No related tags found
无相关合并请求
...@@ -7,6 +7,7 @@ using BasicTestApp; ...@@ -7,6 +7,7 @@ using BasicTestApp;
using Microsoft.AspNetCore.Components.E2ETest.Infrastructure; using Microsoft.AspNetCore.Components.E2ETest.Infrastructure;
using Microsoft.AspNetCore.Components.E2ETest.Infrastructure.ServerFixtures; using Microsoft.AspNetCore.Components.E2ETest.Infrastructure.ServerFixtures;
using Microsoft.AspNetCore.E2ETesting; using Microsoft.AspNetCore.E2ETesting;
using Microsoft.AspNetCore.Testing;
using Moq; using Moq;
using OpenQA.Selenium; using OpenQA.Selenium;
using OpenQA.Selenium.Support.UI; using OpenQA.Selenium.Support.UI;
...@@ -506,6 +507,7 @@ namespace Microsoft.AspNetCore.Components.E2ETest.Tests ...@@ -506,6 +507,7 @@ namespace Microsoft.AspNetCore.Components.E2ETest.Tests
} }
[Fact] [Fact]
[QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/23596")]
public void CanBindTextboxNullableDouble() public void CanBindTextboxNullableDouble()
{ {
var target = Browser.FindElement(By.Id("textbox-nullable-double")); var target = Browser.FindElement(By.Id("textbox-nullable-double"));
......
...@@ -6,6 +6,7 @@ using BasicTestApp; ...@@ -6,6 +6,7 @@ using BasicTestApp;
using Microsoft.AspNetCore.Components.E2ETest.Infrastructure; using Microsoft.AspNetCore.Components.E2ETest.Infrastructure;
using Microsoft.AspNetCore.Components.E2ETest.Infrastructure.ServerFixtures; using Microsoft.AspNetCore.Components.E2ETest.Infrastructure.ServerFixtures;
using Microsoft.AspNetCore.E2ETesting; using Microsoft.AspNetCore.E2ETesting;
using Microsoft.AspNetCore.Testing;
using OpenQA.Selenium; using OpenQA.Selenium;
using Xunit; using Xunit;
using Xunit.Abstractions; using Xunit.Abstractions;
...@@ -50,6 +51,7 @@ namespace Microsoft.AspNetCore.Components.E2ETest.Tests ...@@ -50,6 +51,7 @@ namespace Microsoft.AspNetCore.Components.E2ETest.Tests
} }
[Fact] [Fact]
[QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/23596")]
public void ShowsErrorNotification_OnError_Reload() public void ShowsErrorNotification_OnError_Reload()
{ {
var causeErrorButton = Browser.Exists(By.Id("throw-simple-exception")); var causeErrorButton = Browser.Exists(By.Id("throw-simple-exception"));
......
...@@ -9,6 +9,7 @@ using BasicTestApp.RouterTest; ...@@ -9,6 +9,7 @@ using BasicTestApp.RouterTest;
using Microsoft.AspNetCore.Components.E2ETest.Infrastructure; using Microsoft.AspNetCore.Components.E2ETest.Infrastructure;
using Microsoft.AspNetCore.Components.E2ETest.Infrastructure.ServerFixtures; using Microsoft.AspNetCore.Components.E2ETest.Infrastructure.ServerFixtures;
using Microsoft.AspNetCore.E2ETesting; using Microsoft.AspNetCore.E2ETesting;
using Microsoft.AspNetCore.Testing;
using OpenQA.Selenium; using OpenQA.Selenium;
using OpenQA.Selenium.Interactions; using OpenQA.Selenium.Interactions;
using Xunit; using Xunit;
...@@ -479,14 +480,18 @@ namespace Microsoft.AspNetCore.Components.E2ETest.Tests ...@@ -479,14 +480,18 @@ namespace Microsoft.AspNetCore.Components.E2ETest.Tests
Browser.Equal(0, () => BrowserScrollY); Browser.Equal(0, () => BrowserScrollY);
} }
[Fact]
[QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/23596")]
public void PreventDefault_CanBlockNavigation_ForInternalNavigation_PreventDefaultTarget()
=> PreventDefault_CanBlockNavigation("internal", "target");
[Theory] [Theory]
[InlineData("external", "ancestor")] [InlineData("external", "ancestor")]
[InlineData("external", "target")] [InlineData("external", "target")]
[InlineData("external", "descendant")] [InlineData("external", "descendant")]
[InlineData("internal", "ancestor")] [InlineData("internal", "ancestor")]
[InlineData("internal", "target")]
[InlineData("internal", "descendant")] [InlineData("internal", "descendant")]
public void PreventDefault_CanBlockNavigation(string navigationType, string whereToPreventDefault) public virtual void PreventDefault_CanBlockNavigation(string navigationType, string whereToPreventDefault)
{ {
SetUrlViaPushState("/PreventDefaultCases"); SetUrlViaPushState("/PreventDefaultCases");
var app = Browser.MountTestComponent<TestRouter>(); var app = Browser.MountTestComponent<TestRouter>();
......
...@@ -25,6 +25,7 @@ namespace Microsoft.AspNetCore.Hosting.FunctionalTests ...@@ -25,6 +25,7 @@ namespace Microsoft.AspNetCore.Hosting.FunctionalTests
public ShutdownTests(ITestOutputHelper output) : base(output) { } public ShutdownTests(ITestOutputHelper output) : base(output) { }
[ConditionalFact] [ConditionalFact]
[QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/23610")]
[OSSkipCondition(OperatingSystems.Windows)] [OSSkipCondition(OperatingSystems.Windows)]
[OSSkipCondition(OperatingSystems.MacOSX)] [OSSkipCondition(OperatingSystems.MacOSX)]
public async Task ShutdownTestRun() public async Task ShutdownTestRun()
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册