public void Can_Edit_A_Page()
        {
            ListPostsPage.GoTo(PostType.Page);
            ListPostsPage.SelectPost("Sample Page");

            Assert.IsTrue(NewPostPage.IsInEditMode(), "Wasn't in edit mode");
            Assert.AreEqual("Sample Page", NewPostPage.Title, "Title did not match");
        }
        public void CanEditAPage()
        {
            Wordpress.StartApplication();

            ListPostsPage.GoTo(PostType.Page);
            ListPostsPage.SelectPost("Sample Page");

            Assert.IsTrue(NewPostPage.IsInEditMode(), "Page not in Edit Mode.");
            Assert.AreEqual("Sample Page", NewPostPage.Title, "Title did not match");
        }
示例#3
0
        public void Can_Edit_A_Page()
        {
            // Pages are just a type of Post - so creating a general purpose class to work with
            // posts and pages, and sending in a type to differentiate
            ListPostsPage.GoTo(PostType.Page);
            ListPostsPage.SelectPost("Sample Page");

            Assert.IsTrue(NewPostPage.IsInEditMode(), "Wasn't in edit mode");
            Assert.AreEqual("Sample Page", NewPostPage.Title, "Title did not match");
        }
示例#4
0
        public void Can_Edit_A_Page()
        {
            LoginPage.GoTo();
            LoginPage.LoginAs("admin").WithPassword("password").Login();

            ListPostsPage.GoTo(PostType.Page);
            ListPostsPage.SelectPost("Sample Page");

            Assert.IsTrue(NewPostPage.IsInEditMode(), "Wasn't in edit mode");
            Assert.AreEqual("Sample Page", NewPostPage.Title, "Title did not match");
        }
示例#5
0
        public void Can_Create_A_Basic_Post()
        {
            LoginPage.GoTo("");
            LoginPage.LoginAs("trebevic_admin").WithPassword("baG!Rf7yp6jWhkl&wP").Login();

            ListPostsPage.GoTo(PostType.Page);
            ListPostsPage.SelectPost("Sample Page");

            Assert.IsTrue(
                NewPostPage.IsInEditMode(), "Wasn't in edit mode");
            Assert.AreEqual("Sample Page", NewPostPage.Title, "Title did not match");
        }
示例#6
0
        public void CanEditAPage()
        {
            LoginPage.Goto();
            LoginPage
            .LoginAs("selenium_user")
            .WithPassword("q*y12rVMn7NJ8Jjxw@")
            .Login();

            ListPostsPage.GoTo(PostType.Page);
            ListPostsPage.SelectPost("Sample Page");

            Assert.True(NewPostPage.IsInEditMode(), "Isn't in Edit mode");
            Assert.Equal("Sample Page", NewPostPage.Title);
        }
        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");
        }
示例#8
0
        public void Can_Edit_A_Page()
        {
            ListPostsPage.GoTo(PostType.Page);
            ListPostsPage.SelectPost("Sample Page");

            Assert.IsTrue(NewPostPage.IsInEditMode(), "Wasn't in edit mode");
            Assert.AreEqual(NewPostPage.Title, "Sample Page", "Title did not match");



            //NewPostPage.GoTo();
            //NewPostPage.CreatePost("This is the test post title").WithBody("Hi, this is the body...").Publish();

            //NewPostPage.GotoNewPost();
            //Assert.AreEqual(PostPage.Title, "This is the test post title", "Title did not match new post");
        }
示例#9
0
        public void Can_Edit_A_Page()
        {
            #region Manual test case
            //Go to login page
            //Login as “admin” user with correct password “ha tran”
            //Click Login button
            //Hover mouse on the “Pages” menu on the left navigation panel
            //Click “All Pages” menu
            //Click on the page post having title “Sample Page”
            //Verify that the page post is edit mode by checking visibility of the “View Page” button
            //Verify that the page title is “Sample Page”
            #endregion

            ListPostsPage.GoTo(PostType.Page);
            ListPostsPage.SelectPost("Sample Page");
            Assert.IsTrue(NewPostPage.IsInEditMode(), "Wasn't in edit mode");
            Assert.AreEqual("Sample Page", NewPostPage.Title, "Title didn't match");
        }