public void PostPageLoaded() { var postPage = new PostPage(this.driver); postPage.NavigateTo(); postPage.AssertPostPageIsLoaded("Create Article"); }
public void CreatePostSuccessfully() { var postPage = new PostPage(this.driver); Post post = AccessExcelData.GetPostTestData("CreatePostSuccessfully"); postPage.NavigateTo(); postPage.FillPostForm(post); postPage.AssertPostAdded(); }
public void CreatePostWithoutContent() { var postPage = new PostPage(this.driver); Post post = AccessExcelData.GetPostTestData("CreatePostWithoutContent"); postPage.NavigateTo(); postPage.FillPostForm(post); postPage.AssertErrorMessage("The Content field is required."); }
public void CreatePostWithLongTitle() { var postPage = new PostPage(this.driver); Post post = AccessExcelData.GetPostTestData("CreatePostWithLongTitle"); postPage.NavigateTo(); postPage.FillPostForm(post); postPage.AssertErrorMessage("The field Title must be a string with a maximum length of 50."); }
public void Init() { this.driver = new ChromeDriver(); var logPage = new LoginPage(this.driver); var postPage = new PostPage(this.driver); User user = AccessExcelData.GetUserTestData("LoginAsAdmin"); Post post = AccessExcelData.GetPostTestData("CreatePostSuccessfully"); logPage.NavigateTo(); logPage.FillLoginForm(user); postPage.NavigateTo(); postPage.FillPostForm(post); }