E2E test async robustness tweaks following recent failures

This commit is contained in:
Steve Sanderson 2018-08-09 10:27:40 +01:00
parent 7d92c07fba
commit 70a4bf7521
2 changed files with 5 additions and 5 deletions

View File

@ -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]

View File

@ -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]