From 811ef19f5754c25af487c6e9dd5fab9bf69aac90 Mon Sep 17 00:00:00 2001 From: Steve Sanderson Date: Tue, 13 Nov 2018 12:00:24 +0000 Subject: [PATCH] In E2E tests, allow for slower execution on Travis/AppVeyor --- .../Infrastructure/WaitAssert.cs | 2 +- .../Tests/ComponentRenderingTest.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/Microsoft.AspNetCore.Blazor.E2ETest/Infrastructure/WaitAssert.cs b/test/Microsoft.AspNetCore.Blazor.E2ETest/Infrastructure/WaitAssert.cs index 12de5f64a3..0a98aa1441 100644 --- a/test/Microsoft.AspNetCore.Blazor.E2ETest/Infrastructure/WaitAssert.cs +++ b/test/Microsoft.AspNetCore.Blazor.E2ETest/Infrastructure/WaitAssert.cs @@ -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 expected, Func actual) => WaitAssertCore(() => Assert.Equal(expected, actual())); diff --git a/test/Microsoft.AspNetCore.Blazor.E2ETest/Tests/ComponentRenderingTest.cs b/test/Microsoft.AspNetCore.Blazor.E2ETest/Tests/ComponentRenderingTest.cs index a5b1641854..e389395c34 100644 --- a/test/Microsoft.AspNetCore.Blazor.E2ETest/Tests/ComponentRenderingTest.cs +++ b/test/Microsoft.AspNetCore.Blazor.E2ETest/Tests/ComponentRenderingTest.cs @@ -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));