Created
December 3, 2017 21:39
-
-
Save angelovstanton/7e743e8a41766e6be19cf5c2053095cd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Test] | |
public void NoErrorCodes_When_NavigateToHomePage() | |
{ | |
_driver.Navigate().GoToUrl("https://automatetheplanet.com/"); | |
AssertNoErrorCodes(); | |
} | |
private void AssertNoErrorCodes() | |
{ | |
bool areThereErrorCodes = _responsesHistory.Values.Any(r => r.StatusCode > 400 && r.StatusCode < 599); | |
Assert.IsFalse(areThereErrorCodes); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment