diff --git a/test/Templates.Test/SpaTemplateTest.cs b/test/Templates.Test/SpaTemplateTest.cs index bd2ed1c2c5..2cbac089bf 100644 --- a/test/Templates.Test/SpaTemplateTest.cs +++ b/test/Templates.Test/SpaTemplateTest.cs @@ -62,9 +62,9 @@ namespace Templates.Test browser.Click(By.PartialLinkText("Fetch data")); Assert.Equal("Weather forecast", browser.GetText("h1")); - // Loads and displays the table of weather forecasts + // Asynchronously loads and displays the table of weather forecasts var fetchDataComponent = browser.FindElement("h1").Parent(); - var table = browser.FindElement(fetchDataComponent, "table", 5); + var table = browser.FindElement(fetchDataComponent, "table", timeoutSeconds: 5); Assert.Equal(5, table.FindElements(By.CssSelector("tbody tr")).Count); } }