E2E test async robustness tweaks following recent failures
This commit is contained in:
parent
7d92c07fba
commit
70a4bf7521
|
|
@ -115,12 +115,12 @@ namespace Microsoft.AspNetCore.Blazor.E2ETest.Tests
|
|||
// Modify target; verify value is updated
|
||||
target.Click();
|
||||
WaitAssert.True(() => target.Selected);
|
||||
Assert.Equal("True", boundValue.Text);
|
||||
WaitAssert.Equal("True", () => boundValue.Text);
|
||||
|
||||
// Modify data; verify checkbox is updated
|
||||
invertButton.Click();
|
||||
WaitAssert.False(() => target.Selected);
|
||||
Assert.Equal("False", boundValue.Text);
|
||||
WaitAssert.Equal("False", () => boundValue.Text);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
|
@ -135,12 +135,12 @@ namespace Microsoft.AspNetCore.Blazor.E2ETest.Tests
|
|||
// Modify target; verify value is updated
|
||||
target.Click();
|
||||
WaitAssert.False(() => target.Selected);
|
||||
Assert.Equal("False", boundValue.Text);
|
||||
WaitAssert.Equal("False", () => boundValue.Text);
|
||||
|
||||
// Modify data; verify checkbox is updated
|
||||
invertButton.Click();
|
||||
WaitAssert.True(() => target.Selected);
|
||||
Assert.Equal("True", boundValue.Text);
|
||||
WaitAssert.Equal("True", () => boundValue.Text);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
|
|
|||
|
|
@ -328,7 +328,7 @@ namespace Microsoft.AspNetCore.Blazor.E2ETest.Tests
|
|||
public void LogicalElementInsertionWorksHierarchically()
|
||||
{
|
||||
var appElement = MountTestComponent<LogicalElementInsertionCases>();
|
||||
Assert.Equal("First Second Third", appElement.Text);
|
||||
WaitAssert.Equal("First Second Third", () => appElement.Text);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
|
|
|||
Loading…
Reference in New Issue