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

            Assert.AreEqual(PostPage.Title, "This is the test post title", "Title did not match new post.");
        }
示例#2
0
 public static void CreatePost()
 {
     NewPostPage.GoTo();
     PreviousTitle = CreateTitle();
     PreviousBody  = CreateBody();
     NewPostPage.CreatePost(PreviousTitle).WithBody(PreviousBody).Publish();
 }
示例#3
0
 public void CanCreateABasicPost()
 {
     NewPostPage.GoTo();
     NewPostPage.CreatePost("This is the test post title").
     WithBody("Hi, this is the body").
     Publish();
 }
        public void CanCreateBasicPost()
        {
            NewPostPage.GoTo();
            NewPostPage.CreatePost("Test post title").WithBody("Post body").Publish();

            NewPostPage.GoToNewPost();

            Assert.AreEqual(PostPage.Title, "Test post title", "Title did not match the test post");
        }
示例#5
0
        public static void CreatePost()
        {
            NewPostPage.GoTo();
            //this will generate some dummy title.
            PreviousTitle = CreateTitle();
            PreviousBody  = CreateBody();

            NewPostPage.CreatePost(PreviousTitle).WithBody(PreviousBody).Publish();
        }
示例#6
0
        public void CanCreateABasicPost()
        {
            Wordpress.StartApplication();

            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");
        }
        public void Admin_User_Can_Create_A_Basic_Post()
        {
            NewPostPage.GoTo();
            NewPostPage.CreatePost("this is the title".ToUpper()).WithBody("this is the body").Publish();

            NewPostPage.GoToNewPost();

            Assert.AreEqual(PostPage.Title.ToUpper(), "this is the title".ToUpper(), "Title did not match new post");
        }
示例#8
0
        public void CanCreateABasicPost()
        {
            LoginPage.GoTo();
            LoginPage.LoginAs("LOGIN").WithPassword("PASSWORD").Login();

            NewPostPage.GoTo();
            NewPostPage.CreatePost("This is the test post title").
            WithBody("Hi, this is the body").
            Publish();
        }
示例#9
0
        public void Can_Create_A_Basic_Post()
        {
            NewPostPage.GoTo();
            NewPostPage.CreatePost("This is the test Post Title, Again")
            .WithBody("Hi, This is the body of the post!")
            .Publish();

            NewPostPage.GoToNewPost();

            Assert.AreEqual(PostPage.Title, "This is the test Post Title, Again", "Title did not match new post");
        }
        public void Can_Create_A_Basic_Post()
        {
            LoginPage.GoTo();
            LoginPage.LoginAs("wkryszax").WithPassword("X011T@phbA$TQ2KFZh").Login();

            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");
        }
        public void Can_Create_A_Basic_Post_Test()
        {
            LoginPage.GoTo();
            LoginPage.LoginAs("root").WithPassword("novell").Login();

            NewPostPage.GoTo();
            NewPostPage.CreatePost("This is the test post title")
            .WithBody("This is the bod of new post")
            .Publish();
            NewPostPage.GoToNewPost();

            Assert.AreEqual(PostPage.Title, "This is the test post title", "Title did not match with new post title");
        }
        public void Can_Create_Basic_Post()
        {
            // create post contents - title, body
            NewPostPage
            .CreatePost("This is the post test title")
            .WithBody("Hi, this is the body")
            .Publish();

            // create post
            NewPostPage.GoToNewPost();

            // check if the post has been created and that the title of the post equals the provided one
            Assert.AreEqual(PostPage.Title, "This is the post test title", "Title did not match a new post");
        }
示例#13
0
        public void Can_Create_A_Basic_Post()
        {
            LoginPage.GoTo("https://trebevic.net/wp-login.php?itsec-hb-token=treblogin");
            LoginPage.LoginAs("trebevic_admin").WithPassword("baG!Rf7yp6jWhkl&wP").Login();

            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");
        }
示例#14
0
        public void Can_Create_A_Basic_Post()
        {
            LoginPage.GoTo();
            LoginPage.LoginAs("admin").WithPassword("password").Login();

            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.");
        }
示例#15
0
        public void CanCreateABasicPost()
        {
            LoginPage.Goto();
            LoginPage
            .LoginAs("selenium_user")
            .WithPassword("q*y12rVMn7NJ8Jjxw@")
            .Login();

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

            NewPostPage.GoToNewPost();

            Assert.Equal("This is a test post title", PostPage.Title);
            // Assert.Equal(PostPage.Body, "Hi, this is the body");
        }
示例#16
0
        public void Can_Search_Posts()
        {
            // Create new post
            NewPostPage.GoTo();
            NewPostPage.CreatePost("Searching posts, title")
            .WithBody("Seraching posts, body")
            .Publish();

            // Go to lists posts
            ListPostsPage.GoTo(PostType.Posts);

            // Search for the post
            ListPostsPage.SearchForPost("Searching posts, title");

            // Check that posts shows up in the results
            Assert.IsTrue(ListPostsPage.DoesPostExistWithTitle("Searching posts, title"));

            // Cleanup (Trash post)
            ListPostsPage.TrashPost("Searching posts, title");
        }
        public void Added_Posts_Show_Up()
        {
            // Go to posts, get post count, store
            ListPostsPage.GoTo(ListPostsPage.PostType.Posts);
            ListPostsPage.StoreCount();

            // Add a new post
            NewPostPage.GoTo();
            NewPostPage.CreatePost("Added posts show up, title")
            .WithBody("Added posts show up, body")
            .Publish();

            // Go to posts, get new post count
            ListPostsPage.GoTo(ListPostsPage.PostType.Posts);
            Assert.AreEqual(ListPostsPage.PreviousPostCount + 1, ListPostsPage.CurrentPostCount, "Count of posts did not increase");

            // Check for added post
            Assert.IsTrue(ListPostsPage.DoesPostExistWithTitle("Added posts show up, title"));

            // Trash post (clean up)
            ListPostsPage.TrashPost("Added posts show up, title");
            Assert.AreEqual(ListPostsPage.PreviousPostCount, ListPostsPage.CurrentPostCount, "Couldn't trash post");
        }
示例#18
0
        public void Can_Create_A_Basic_Post()
        {
            #region Manual test case
            //Go to login page
            //Login as “admin” user with correct password “ha tran”
            //Click Login button
            //Click Posts menu on the left nagivation panel
            //Click Add New button
            //Enter the post title “This is the post title”
            //Enter the post body “Hi, This is the post body”
            //Click “Publish…” button
            //Click “Publish” button
            //Click “View Post” button
            //Verify that the post is created by checking the title “This is the post title”
            #endregion Manual test case

            NewPostPage.GoTo();
            NewPostPage.CreatePost("This is the post title")
            .WithBody("Hi, This is the post body")
            .Publish();
            NewPostPage.GoToNewPost();
            Assert.AreEqual(PostPage.NewPostTitle, "This is the post title", "Title did not match new post.");
        }