public void Can_Edit_A_Page() { ListPostPage.GoTo(PostType.Page); ListPostPage.SelectPost("Sample Page"); Assert.IsTrue(NewPostPage.IsInEditMode(), "Wasn't in edit mode"); Assert.AreEqual("Sample Page", NewPostPage.Title, "Title did not match"); }
public void Can_Edit_Page() { // navigate to the list post page ListPostPage.GoTo(PostType.Page); // select page/post to select ListPostPage.SelectPost("Career"); // verify edit mode Assert.IsTrue(NewPostPage.IsInEditMode(), "Was not in edit mode"); // verify we are at the page/post to edit Assert.AreEqual("Career", NewPostPage.Title, "Title did not match"); }