Beispiel #1
0
        public void RegisterNewPhotographer_OneEmptyField_Negative()
        {
            MainPage             = new MainPage(driver);
            PageWithRegisterLink = MainPage.GoToPageWithRegisterLink();
            RegisterPage         = PageWithRegisterLink.GoToRegisterPage();

            RegisterPage.FillTheFirstNameField();
            RegisterPage.FillTheEmailField();
            RegisterPage.FillThePasswordField();
            RegisterPage.ConfirmPasswordField.Clear();
            RegisterPage.CreateAccountButton.Click();
            Assert.True(RegisterPage.ErrorMessage.Displayed);

            RegisterPage.FirstNameField.Clear();
            RegisterPage.FillTheEmailField();
            RegisterPage.FillThePasswordField();
            RegisterPage.FillTheConfirmPasswordField();
            RegisterPage.CreateAccountButton.Click();
            Assert.True(RegisterPage.ErrorMessage.Displayed);

            RegisterPage.FillTheFirstNameField();
            RegisterPage.EmailField.Clear();
            RegisterPage.FillThePasswordField();
            RegisterPage.FillTheConfirmPasswordField();
            RegisterPage.CreateAccountButton.Click();
            Assert.True(RegisterPage.ErrorMessage.Displayed);
        }
Beispiel #2
0
        public void RegisterNewPhotographer_EmptyFields_Negative()
        {
            MainPage             = new MainPage(driver);
            PageWithRegisterLink = MainPage.GoToPageWithRegisterLink();
            RegisterPage         = PageWithRegisterLink.GoToRegisterPage();
            RegisterPage.CreateAccountButton.Click();

            Assert.True(RegisterPage.ErrorMessage.Displayed);
        }