public void CheckArticleIsCreated() { 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!", "I am new article!"); createdArticle.CreateArticle(newArticle); createdArticle.AssertArticleIsCreated("The new article is visible!"); createdArticle.DeleteArticle(newArticle); }
public void CreateNewArticleCheck() { var email = "Nadeto" + DateTime.Now.Ticks + "@abv.bg"; var registrationPage = new RegistrationPage(this.driver); var registrationUser = new RegisterUser(email, "Nadeto Petrova", "0123456789", "0123456789"); registrationPage.NavigateTo(); registrationPage.FillRegistrationForm(registrationUser); var createdArticle = new CreateArticlePage(this.driver); var newArticle = new Article("Yep!", "The first Article is here!"); createdArticle.CreateArticle(newArticle); createdArticle.AssertTititleArticleIsCreated("Yep!"); createdArticle.AssertContentArticleIsCreated("The first Article is here!"); createdArticle.DeleteArticle(newArticle); }