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

            mainPage.LoginClick();
            mainPage.RegisterClick();
            registerPage.EnterPassword(TestDataReader.GetTestData("Password"));
            registerPage.EnterConfirmPassword(TestDataReader.GetTestData("ConfirmPassword"));
            registerPage.RegisterClick();

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