Minor clarification to SPA test code

This commit is contained in:
Steve Sanderson 2017-09-07 10:14:36 +01:00
parent a85fd96e26
commit 6cf4cbd736
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}
}