Package org.xwiki.test.ui.framework.elements

Examples of org.xwiki.test.ui.framework.elements.ViewPage.waitUntilPageIsLoaded()


        // In this test class, the only user who logs in is admin.
        getUtil().gotoPage(SPACE_NAME, DOC_NAME, "view", "xpage=xpart&vm=commentsinline.vm");
        this.commentsTab.postComment(COMMENT_CONTENT, false);
        ViewPage vp = new ViewPage();
        // This opens with ?viewer=comments, don't explicitly load the comments tab
        vp.waitUntilPageIsLoaded();
        Assert.assertEquals(COMMENT_CONTENT,
            this.commentsTab.getCommentContentByID(this.commentsTab.getCommentID(COMMENT_CONTENT)));
        Assert.assertEquals(ADMIN,
            this.commentsTab.getCommentAuthorByID(this.commentsTab.getCommentID(COMMENT_CONTENT)));
    }
View Full Code Here


    {
        ViewPage vp = util.gotoPage("Sandbox", "WebHome");

        // Test default edit mode (WYSIWYG for sandbox webhome) key
        vp.sendKeys("e");
        vp.waitUntilPageIsLoaded();
        Assert.assertTrue(util.isInWYSIWYGEditMode());

        // Test Cancel key
        vp.sendKeys(Keys.ALT, "c");
        vp.waitUntilPageIsLoaded();
View Full Code Here

        vp.waitUntilPageIsLoaded();
        Assert.assertTrue(util.isInWYSIWYGEditMode());

        // Test Cancel key
        vp.sendKeys(Keys.ALT, "c");
        vp.waitUntilPageIsLoaded();
        Assert.assertTrue(util.isInViewMode());

        // Test Wiki edit key
        vp.sendKeys("k");
        vp.waitUntilPageIsLoaded();
View Full Code Here

        vp.waitUntilPageIsLoaded();
        Assert.assertTrue(util.isInViewMode());

        // Test Wiki edit key
        vp.sendKeys("k");
        vp.waitUntilPageIsLoaded();
        Assert.assertTrue(util.isInWikiEditMode());

        // Test WYSIWYG edit mode key
        vp = this.util.gotoPage("Sandbox", "WebHome");
        vp.sendKeys("e");
View Full Code Here

        Assert.assertTrue(util.isInWikiEditMode());

        // Test WYSIWYG edit mode key
        vp = this.util.gotoPage("Sandbox", "WebHome");
        vp.sendKeys("e");
        vp.waitUntilPageIsLoaded();
        Assert.assertTrue(util.isInWYSIWYGEditMode());

        // Test Inline edit mode key
        vp = this.util.gotoPage("Sandbox", "WebHome");
        vp.sendKeys("f");
View Full Code Here

        Assert.assertTrue(util.isInWYSIWYGEditMode());

        // Test Inline edit mode key
        vp = this.util.gotoPage("Sandbox", "WebHome");
        vp.sendKeys("f");
        vp.waitUntilPageIsLoaded();
        Assert.assertTrue(util.isInInlineEditMode());

        // Test Rights edit mode key
        vp = this.util.gotoPage("Sandbox", "WebHome");
        vp.sendKeys("r");
View Full Code Here

        Assert.assertTrue(util.isInInlineEditMode());

        // Test Rights edit mode key
        vp = this.util.gotoPage("Sandbox", "WebHome");
        vp.sendKeys("r");
        vp.waitUntilPageIsLoaded();
        Assert.assertTrue(util.isInRightsEditMode());

        // Test Object edit mode key
        vp = this.util.gotoPage("Sandbox", "WebHome");
        vp.sendKeys("o");
View Full Code Here

        Assert.assertTrue(util.isInRightsEditMode());

        // Test Object edit mode key
        vp = this.util.gotoPage("Sandbox", "WebHome");
        vp.sendKeys("o");
        vp.waitUntilPageIsLoaded();
        Assert.assertTrue(util.isInObjectEditMode());

        // Test Class edit mode key
        vp = this.util.gotoPage("Sandbox", "WebHome");
        vp.sendKeys("s");
View Full Code Here

        Assert.assertTrue(util.isInObjectEditMode());

        // Test Class edit mode key
        vp = this.util.gotoPage("Sandbox", "WebHome");
        vp.sendKeys("s");
        vp.waitUntilPageIsLoaded();
        Assert.assertTrue(util.isInClassEditMode());

        // Test Delete key
        vp = this.util.gotoPage("Sandbox", "WebHome");
        vp.sendKeys(Keys.DELETE);
View Full Code Here

        // Attach the GIF image.
        AttachmentsPane attachmentsPane = viewPage.openAttachmentsDocExtraPane();
        attachmentsPane.setFileToUpload(getClass().getResource("/image.gif").getPath());
        attachmentsPane.clickAttachFiles();
        // clickAttachFiles should wait for the page to load but it doesn't..
        viewPage.waitUntilPageIsLoaded();
        // XWIKI-5896 shows that the file name becomes image.png
        attachmentsPane = viewPage.openAttachmentsDocExtraPane();
        Assert.assertTrue(attachmentsPane.attachmentExistsByFileName("image.gif"));
    }
}
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.