Package org.xwiki.test.ui.po

Examples of org.xwiki.test.ui.po.CommentForm.clickPreview()


    @Test
    public void testPreviewComment()
    {
        CommentForm addCommentForm = commentsTab.getAddCommentForm();
        addCommentForm.getContentField().sendKeys("one **two** three");
        Assert.assertEquals("one two three", addCommentForm.clickPreview().getText());
        addCommentForm.clickBack();
        addCommentForm.getContentField().sendKeys(" //four//");
        addCommentForm.clickPreview();
        addCommentForm.clickSubmit();
        Assert.assertTrue(commentsTab.getCommentID("one two three four") >= 0);
View Full Code Here


        CommentForm addCommentForm = commentsTab.getAddCommentForm();
        addCommentForm.getContentField().sendKeys("one **two** three");
        Assert.assertEquals("one two three", addCommentForm.clickPreview().getText());
        addCommentForm.clickBack();
        addCommentForm.getContentField().sendKeys(" //four//");
        addCommentForm.clickPreview();
        addCommentForm.clickSubmit();
        Assert.assertTrue(commentsTab.getCommentID("one two three four") >= 0);
    }

    /**
 
View Full Code Here

    {
        // We know Blog.BlogIntroduction has a sheet applied.
        commentsTab = getUtil().gotoPage("Blog", "BlogIntroduction").openCommentsDocExtraPane();
        CommentForm addCommentForm = commentsTab.getAddCommentForm();
        addCommentForm.getContentField().sendKeys("xyz");
        Assert.assertEquals("xyz", addCommentForm.clickPreview().getText());
    }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.