Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions src/Components/test/E2ETest/Tests/EventTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -278,12 +278,14 @@ public void PreventDefault_AppliesToFormOnSubmitHandlers()
}

[Fact]
[QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/62533")]
public void PreventDefault_DotNotApplyByDefault()
public void PreventDefault_DoNotApplyByDefault()
{
var appElement = Browser.MountTestComponent<EventPreventDefaultComponent>();
appElement.FindElement(By.Id("form-2-button")).Click();
Assert.Contains("about:blank", Browser.Url);

// The URL should change because the submit event is not prevented
var wait = new WebDriverWait(Browser, TimeSpan.FromSeconds(3));
wait.Until(driver => driver.Url.Contains("about:blank"));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check the extensions on Browser they centralize things like the wait times and stuff like that, it might be better to use those.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the suggestion. I looked into the existing extensions and did not find one that would cover this kind of wait, so I added one. Is it ok like this?

}

[Fact]
Expand Down
Loading