Exemple #1
0
        public void Register_EnterDifferentPasswords_NotMatchingPasswordsErrorAppears()
        {
            TakeScreenshotWhenTestFailed(() =>
            {
                const string CpasswordErrorText = "Пароли не совпадают";
                var mainPage     = new MainPage(Driver);
                var registerPage = new RegisterPage(Driver);

                mainPage.LoginClick();
                mainPage.RegisterClick();
                registerPage.EnterPassword(TestDataReader.GetTestData("Password"));
                registerPage.EnterCPassword(TestDataReader.GetTestData("Password2"));
                registerPage.RegisterClick();

                Assert.AreEqual(CpasswordErrorText, registerPage.GetConfirmPasswordError());
            });
        }