Examples of clickPreview()


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

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

        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

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

    {
        // 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

Examples of org.xwiki.test.ui.po.editor.PreviewableEditPage.clickPreview()

        objectEditPane = new ObjectEditPane(new InlinePage().getForm(), classFullName, 0);
        objectEditPane.setFieldValue(objectEditPane.byPropertyName("color"), "green");

        // Test the preview when the page is not yet saved.
        PreviewableEditPage editPage = new PreviewableEditPage();
        PreviewEditPage previewPage = editPage.clickPreview();
        assertEquals("green", previewPage.getContent());

        // Test the preview after the page is saved.
        previewPage.clickBackToEdit().clickSaveAndView().editInline().clickPreview();
        assertEquals("green", previewPage.getContent());
View Full Code Here

Examples of org.xwiki.test.ui.po.editor.WikiEditPage.clickPreview()

    public void previewWithProgrammingRights()
    {
        WikiEditPage wikiEditPage = WikiEditPage.gotoPage(getTestClassName(), getTestMethodName());
        wikiEditPage.setContent("{{velocity}}$xwiki.hasAccessLevel('programming')"
            + " $tdoc.author $tdoc.contentAuthor $tdoc.creator{{/velocity}}");
        PreviewEditPage previewPage = wikiEditPage.clickPreview();
        assertEquals("true XWiki.Admin XWiki.Admin XWiki.Admin", previewPage.getContent());
    }

    /**
     * @see "XWIKI-9527: Sheets are not applied on preview action if the document is new"
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.