Exemplo n.º 1
0
        public void CheckArticleIsCreatedWithoutTitle()
        {
            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("", "I am new article!");

            createdArticle.CreateArticle(newArticle);

            createdArticle.AssertArticleIsCreatedWithoutTitle("The Title field is required.");
        }