From 6cf4cbd736235fd95485b47e9f21ff7dd6297881 Mon Sep 17 00:00:00 2001 From: Steve Sanderson Date: Thu, 7 Sep 2017 10:14:36 +0100 Subject: [PATCH] Minor clarification to SPA test code --- test/Templates.Test/SpaTemplateTest.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } }