Skip to content

Instantly share code, notes, and snippets.

@angelovstanton
Created December 3, 2017 21:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save angelovstanton/4a83d77cf17a85ad7025a113bc6a738c to your computer and use it in GitHub Desktop.
Save angelovstanton/4a83d77cf17a85ad7025a113bc6a738c to your computer and use it in GitHub Desktop.
[Test]
public void FontRequestMade_When_NavigateToHomePage()
{
_driver.Navigate().GoToUrl("https://automatetheplanet.com/");
AssertRequestMade("fontawesome-webfont.woff2?v=4.7.0");
}
private void AssertRequestMade(string url)
{
bool areRequestsMade = _requestsHistory.Values.Any(r => r.RequestUri.ToString().Contains(url));
Assert.IsTrue(areRequestsMade);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment