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