Skip to content

Commit 963ca78

Browse files
authored
Fix race condition in EventTest.PreventDefault_DoNotApplyByDefault (#63384)
1 parent 432cea8 commit 963ca78

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -278,12 +278,13 @@ public void PreventDefault_AppliesToFormOnSubmitHandlers()
278278
}
279279

280280
[Fact]
281-
[QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/62533")]
282-
public void PreventDefault_DotNotApplyByDefault()
281+
public void PreventDefault_DoNotApplyByDefault()
283282
{
284283
var appElement = Browser.MountTestComponent<EventPreventDefaultComponent>();
285284
appElement.FindElement(By.Id("form-2-button")).Click();
286-
Assert.Contains("about:blank", Browser.Url);
285+
286+
// The URL should change because the submit event is not prevented
287+
Browser.Contains("about:blank", () => Browser.Url);
287288
}
288289

289290
[Fact]

0 commit comments

Comments
 (0)