public void ShouldNotBeAbleToLoginWhenCredentialsAreBlank() { var login = new SauceDemo_LoginPage(driver); var variable = new Variables(); login.ClickLoginButton(); Assert.AreEqual(variable.usernameRequiredErrorMessage, login.GetLoginErrorMessage()); }
public void ShouldNotBeAbleToLoginWhenUsernameIsBlank() { var login = new SauceDemo_LoginPage(driver); var variable = new Variables(); login.EnterPassword(variable.validPassword); login.ClickLoginButton(); Assert.AreEqual(variable.usernameRequiredErrorMessage, login.GetLoginErrorMessage()); }