Skip to content

Instantly share code, notes, and snippets.

@nadvolod
Last active August 14, 2019 12:38
Embed
What would you like to do?
Here is a good page object test
[Test]
public void ShouldNotBeAbleToLoginWithLockedOutUser()
{
_loginPage.Open();
//Although I would likely never test a login through the UI. This is just a small example
var productsPage = _loginPage.Login("locked_out_user", "secret_sauce");
productsPage.IsLoaded.Should().BeFalse("we used a locked out user who should not be able to login.");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment