예제 #1
0
        public void CAP_TC3_Create_ArticleWithoutContent()
        {
            var createArticlePage = new CreateArticlePage(driver);

            createArticlePage.NavigateTo();
            createArticlePage.Title.SendKeys("Tralala");
            createArticlePage.CreateArticleButton.Click();

            createArticlePage.AssertCreateArticleWithoutContent("The Content field is required.");
        }
        public void CAP_TC3_Create_ArticleWithoutContent()
        {
            var loginPage = new LoginPage(driver);
            var user      = new LoginUser("*****@*****.**", "1234");

            loginPage.NavigateTo();
            loginPage.FillLoginForm(user);
            var createArticlePage = new CreateArticlePage(driver);

            createArticlePage.NavigateTo();
            createArticlePage.Title.Clear();
            createArticlePage.Title.SendKeys("Tralala");
            createArticlePage.Content.Clear();
            createArticlePage.CreateArticleButton.Click();
            createArticlePage.AssertCreateArticleWithoutContent("The Content field is required.");
        }