In E2E tests, allow for slower execution on Travis/AppVeyor
This commit is contained in:
parent
dc1ad1943d
commit
811ef19f57
|
|
@ -15,7 +15,7 @@ namespace Microsoft.AspNetCore.Blazor.E2ETest.Infrastructure
|
|||
|
||||
public class WaitAssert
|
||||
{
|
||||
private readonly static TimeSpan DefaultTimeout = TimeSpan.FromSeconds(2);
|
||||
private readonly static TimeSpan DefaultTimeout = TimeSpan.FromSeconds(3);
|
||||
|
||||
public static void Equal<T>(T expected, Func<T> actual)
|
||||
=> WaitAssertCore(() => Assert.Equal(expected, actual()));
|
||||
|
|
|
|||
|
|
@ -527,8 +527,8 @@ namespace Microsoft.AspNetCore.Blazor.E2ETest.Tests
|
|||
var toggle = appElement.FindElement(By.Id("toggle"));
|
||||
toggle.Click();
|
||||
|
||||
Assert.Collection(
|
||||
tfoot.FindElements(By.TagName("td")),
|
||||
WaitAssert.Collection(
|
||||
() => tfoot.FindElements(By.TagName("td")),
|
||||
e => Assert.Equal("The", e.Text),
|
||||
e => Assert.Equal("", e.Text),
|
||||
e => Assert.Equal("End", e.Text));
|
||||
|
|
|
|||
Loading…
Reference in New Issue