public void ThenIExpectThatMyOldPasswordWillNotLogMeIn() { WaitUtils.waitForPage(_driverWait); _loginPage.Login(_userEntity.EmailAddress, _userEntity.Password); WaitUtils.waitForPage(_driverWait); Assert.Equal(_driver.Url, _baseUrl + "/login"); }
public void WhenIFollowTheLinkAndCompleteTheResetPasswordForm() { _driver.Navigate().GoToUrl(_passwordResetEmail.Link); WaitUtils.waitForPage(_driverWait); Assert.NotNull(_passwordResetEmail.Link); _resetPasswordPage.EnterNewPasswordAndSubmit(_newPassword); }
public void ThenIExpectMyNewPasswordWillLogMeIn() { WaitUtils.waitForPage(_driverWait); _loginPage.Login(_userEntity.EmailAddress, _newPassword); _driverWait.Until(d => d.Manage().Cookies.AllCookies.Any(x => x.Name == "XSRF-TOKEN")); var cookies = _driver.Manage().Cookies; Assert.NotNull(cookies.AllCookies.FirstOrDefault(x => x.Name == "XSRF-TOKEN")); }
public void GivenIChooseUserAsMyUserType(UserType userType) { RegisterUserPage = _registerUserSelectionPage.Select(userType); WaitUtils.waitForPage(_driverWait); }
public void GivenINavigateToTheRegistrationPage() { _loginPage.Navigate(); WaitUtils.waitForPage(_driverWait); _loginPage.RegisterButton.Click(); }
public void GivenICompleteTheFormRequestingToResetMyPassword(string userType) { _userEntity = new UserEntityFactory(userType).ConstructAndSave(_testOutputHelper); WaitUtils.waitForPage(_driverWait); _requestResetPasswordPage.SetEmailAndSubmit(_userEntity.EmailAddress); }
public void NavigateToTheAllUserPage() { _allUserPage.Navigate(); WaitUtils.waitForPage(_driverWait); }