Skip to content

Instantly share code, notes, and snippets.

@nadvolod
Last active August 14, 2019 12:38
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 nadvolod/2c33f81879c74032dccdc6128f03e043 to your computer and use it in GitHub Desktop.
Save nadvolod/2c33f81879c74032dccdc6128f03e043 to your computer and use it in GitHub Desktop.
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