Exemple #1
0
        public void MyData_ChangePassword_PasswordChanged(string email, string password, string newPassword)
        {
            LoginPageObject   loginPage  = new LoginPageObject();
            MySchedPageObject mSchedPage = loginPage.Login(email, password);
            MenuLayoutObject  menu       = new MenuLayoutObject();
            MyDataPageObject  mdataPage  = menu.EnterDataPage();

            mdataPage.changePassword(newPassword);

            loginPage  = menu.LogOut();
            mSchedPage = loginPage.Login(email, newPassword);
            mdataPage  = menu.EnterDataPage();

            mdataPage.changePassword(password);
        }
Exemple #2
0
        public void MyData_ChangeToShortPassword_PopUpWrongPasswordAndCannotLoginWithNewPassword(string email, string password, string newPassword)
        {
            LoginPageObject   loginPage  = new LoginPageObject();
            MySchedPageObject mSchedPage = loginPage.Login(email, password);
            MenuLayoutObject  menu       = new MenuLayoutObject();
            MyDataPageObject  mdataPage  = menu.EnterDataPage();

            mdataPage.changePassword(newPassword);
            SeleniumUtilityMethods.WaitForJavascript();
            string txt = mdataPage.getPopUpText();

            loginPage = menu.LogOut();

            StringAssert.IsMatch("Hasło musi zawierać conajmniej 5 znaków.", txt);
            Assert.That(() => loginPage.Login(email, newPassword), Throws.Exception);
        }