Skip to content
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -1362,7 +1362,6 @@ void AssertUiState(string expectedStringValue, bool expectedBoolValue)
}

[Fact]
[QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/60873")]
public void RadioButtonGetsResetAfterSubmittingEnhancedForm()
{
GoTo("forms/form-with-checkbox-and-radio-button");
Expand All @@ -1378,8 +1377,9 @@ public void RadioButtonGetsResetAfterSubmittingEnhancedForm()

Browser.Exists(By.Id("submit-button")).Click();

Assert.False(Browser.Exists(By.Id("checkbox")).Selected);
Assert.False(Browser.Exists(By.Id("radio-button")).Selected);
var timeout = TimeSpan.FromSeconds(1);
WaitAssert.False(Browser, () => Browser.Exists(By.Id("checkbox")).Selected, timeout);
WaitAssert.False(Browser, () => Browser.Exists(By.Id("radio-button")).Selected, timeout);
}

[Fact]
Expand Down
3 changes: 3 additions & 0 deletions src/Shared/E2ETesting/WaitAssert.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ public static void True(this IWebDriver driver, Func<bool> actual, TimeSpan time
public static void False(this IWebDriver driver, Func<bool> actual)
=> WaitAssertCore(driver, () => Assert.False(actual()));

public static void False(this IWebDriver driver, Func<bool> actual, TimeSpan timeout)
=> WaitAssertCore(driver, () => Assert.False(actual()), timeout);

public static void Contains(this IWebDriver driver, string expectedSubstring, Func<string> actualString)
=> WaitAssertCore(driver, () => Assert.Contains(expectedSubstring, actualString()));

Expand Down
Loading