Skip to content

Instantly share code, notes, and snippets.

@nadvolod

nadvolod/GoodTest.cs

Last active Aug 14, 2019
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