public void SignUpFailed_PasswordDoesNotMatch() { var page = new SignUpPageObject(driver); page.EnterUsername(user.Username); page.EnterPassword(user.Password); page.EnterConfirmPassword(user.Password + "!"); page.EnterEmail(user.Email); page.Submit(); var actual = page.IsErrorVisible(); var expected = true; Assert.Equal(expected, actual); }
public void SignUpSuccessful() { var page = new SignUpPageObject(driver); page.EnterUsername(user.Username); page.EnterPassword(user.Password); page.EnterConfirmPassword(user.Password); page.EnterEmail(user.Email); page.Submit(); var actual = page.IsSignedIn(); var expected = true; Assert.Equal(expected, actual); }
public SignUpDriver(BrowserDriver browserDriver) { _browserDriver = browserDriver; _signUpPageObject = new SignUpPageObject(_browserDriver.Current); }