Ejemplo n.º 1
0
        public void ValidRegistration()
        {
            RegisterUser     user             = AccessExcelData.GetRegistrationData(TestContext.CurrentContext.Test.MethodName);
            RegistrationPage registrationPage = new RegistrationPage(driver);

            registrationPage.OpenFillSubmitRegistrationForm(user);

            Assert.IsTrue(registrationPage.loggOff.Contains("Log off"));
        }
Ejemplo n.º 2
0
        public void RegisterWithMissingInfo(string testName)
        {
            RegisterUser     user             = AccessExcelData.GetRegistrationData(testName);
            RegistrationPage registrationPage = new RegistrationPage(driver);

            registrationPage.OpenFillSubmitRegistrationForm(user);

            Assert.IsTrue(registrationPage.errors.Contains(user.ErrorMessage));
        }
Ejemplo n.º 3
0
        public void RegisterWithTheSameEmail()
        {
            RegisterUser     user             = AccessExcelData.GetRegistrationData(TestContext.CurrentContext.Test.MethodName);
            RegistrationPage registrationPage = new RegistrationPage(driver);
            string           email            = user.Email;

            registrationPage.OpenAndFillRegistrationFormWithoutEmail(user);
            registrationPage.Email.SendKeys(email);
            registrationPage.RegisterBtn.Click();

            registrationPage.loggOffBtn.Click();
            registrationPage.OpenAndFillRegistrationFormWithoutEmail(user);
            registrationPage.Email.SendKeys(email);
            registrationPage.RegisterBtn.Click();
            Assert.AreEqual(user.ErrorMessage, registrationPage.userIdNotFound);
        }