public void Can_Create_A_Basic_Post()
        {
            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 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");
        }
        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");
        }
示例#4
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 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");
        }
示例#7
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");
        }
示例#8
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.");
        }
        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");
        }
示例#10
0
        public void Can_create_a_new_post()
        {
            string title = DateTime.Now.ToString();
            //ConfigurationManager.AppSettings["newTitle"];
            string body = ConfigurationManager.AppSettings["postBody"];;

            NewPostPage.Goto();
            NewPostPage.createPost(title)
            .withBody(body)
            .Publish();

            NewPostPage.GoToNewPost();

            //Assert.AreEqual( PostPage.Title , title+" - iBlog","Not the new post!");

            string titleString = Driver.Instance.FindElement(By.CssSelector(".site-title>a")).Text;

            Assert.AreEqual(Driver.Instance.Title, title + " – " + titleString);
        }
示例#11
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");
        }
示例#12
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.");
        }