예제 #1
0
        public void CheckArticleIsCreatedWithoutContent()
        {
            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("Hello!", "");

            createdArticle.CreateArticle(newArticle);

            createdArticle.AssertArticleCreatedWithoutContent("The Content field is required.");
        }