コード例 #1
0
        public void SuccessfulChangePasswordUser()
        {
            RegisterUser newUser1 = new RegisterUser(this.driver);

            newUser1.RegisterUserNavigateTo();
            newUser1.RegisterationOfUser("*****@*****.**", "Petya Nikolova", "P@ssw@rd");
            newUser1.AssertNewUser("*****@*****.**");
            ArticlesDashboard dash = new ArticlesDashboard(this.driver);

            dash.LogOut.Click();

            LoginPage loginuser = new LoginPage(this.driver);

            loginuser.LoginUser("*****@*****.**", "P@ssw@rd");
            loginuser.AssertLoginUser();

            ManageUser changePassword = new ManageUser(this.driver);

            changePassword.PasswordUser = loginuser.PASSWORD;

            changePassword.ManageNavigateTo();
            changePassword.AssertManageUserURL();

            changePassword.ChangePasswordLink.Click();
            changePassword.AssertManageUserPageURL();
            changePassword.FillChangePasswordForm("Vel1koLep!e");

            changePassword.AssertSuccessfulMessageChangePassword();

            dash.LogOut.Click();
            dash.AssertAvailableLoginButton();
        }