Example #1
0
        //For security reasons entering invalid email returns confirmation message
        //that password has been reset successfully.
        public void EnterInvalidEmail_ReturnsConfirmationMessage()
        {
            _forgotPasswordPage.Navigate();
            _forgotPasswordPage.EnterEmail("*****@*****.**");

            _forgotPasswordPage.ResetPasswordEmailAssertion();
        }
Example #2
0
        public void EnterValidEmail_ReturnsConfirmationMessage()
        {
            _forgotPasswordPage.Navigate();
            _forgotPasswordPage.EnterEmail("*****@*****.**");

            _forgotPasswordPage.ResetPasswordEmailAssertion();
        }
        public void ForgotPasswordTest()
        {
            new InternetPage(this.DriverContext).OpenHomePage().GoToForgotPasswordPage();

            var forgotPassword = new ForgotPasswordPage(this.DriverContext);

            Verify.That(
                this.DriverContext,
                () => Assert.AreEqual(5 + 7 + 2, forgotPassword.EnterEmail(5, 7, 2)),
                () => Assert.AreEqual("Your e-mail's been sent!", forgotPassword.ClickRetrievePassword));
        }
        public void WhenISubmitTheEmailAddressToChangeMyPassword(string email)
        {
            ForgotPasswordPage.GoTo();

            ForgotPasswordPage.EnterEmail(email);
        }