Example #1
0
        public void CheckArticleIsCreatedWithoutTitleAndContent()
        {
            var email            = "Katy" + DateTime.Now.Ticks + "@abv.bg";
            var registrationPage = new RegistrationPage(this.driver);
            var registrationUser = new RegisterUser(email, "Katy Perry", "0123456789", "0123456789");

            registrationPage.NavigateTo();

            registrationPage.FillRegistrationForm(registrationUser);

            var createdArticle = new CreateArticlePage(this.driver);

            var newArticle = new Article("", "");

            createdArticle.CreateArticle(newArticle);

            createdArticle.AssertArticleCreatedWithoutTitleAndContentFirstErrorMessage("The Title field is required.");
            createdArticle.AssertArticleCreatedWithoutTitleAndContentSecondErrorMessage("The Content field is required.");
        }