public void LoginSuccessful() { var page = new LoginPageObject(driver); page.EnterUsername(user.Username); page.EnterPassword(user.Password); page.Submit(); var actual = page.IsLoggedIn(); var expected = true; Assert.Equal(expected, actual); }
public void LoginFailed_WrongPassword() { var page = new LoginPageObject(driver); page.EnterUsername(user.Username); page.EnterPassword(user.Password + "!"); page.Submit(); var actual = page.IsErrorVisible(); var expected = true; Assert.Equal(expected, actual); }