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

Examples of org.xwiki.test.ui.framework.elements.ViewPage


        // Verify the document space in the metadata
        Assert.assertEquals("\u0219", editPage.getMetaDataValue("space"));

        // Save the space to verify it can be saved with a non-ascii name
        ViewPage savedPage = editPage.save();
        Assert.assertEquals("\u0219", savedPage.getMetaDataValue("space"));
    }
View Full Code Here


        // Verify the document name in the metadata
        Assert.assertEquals("\u0219", editPage.getMetaDataValue("page"));

        // Save the page to verify it can be saved with a non-ascii name
        ViewPage savedPage = editPage.save();
        Assert.assertEquals("\u0219", savedPage.getMetaDataValue("page"));
    }
View Full Code Here

            getUtil().recacheSecretToken();
            grasp.forceAuthenticatedView();

            // Go to a page, log out and expire session by removing cookies, log in again and verify that the user is
            // redirected to the initial page.
            ViewPage page = getUtil().gotoPage("SomeSpace", "SomePage");
            page.logout();
            // Since view is disallowed for unauthenticated users, at this point we see a log in page.
            LoginPage loginPage = new LoginPage();
            // Remove all cookie to simulate a session expiry
            getDriver().manage().deleteAllCookies();
            loginPage.loginAsAdmin();
View Full Code Here

        ResubmissionPage resubmissionPage = new ResubmissionPage();
        if (resubmissionPage.isOnResubmissionPage()) {
            resubmissionPage.resubmit();
        }
        Assert.assertTrue(getDriver().getCurrentUrl().contains("/xwiki/bin/view/Test/TestData"));
        ViewPage viewPage = new ViewPage();
        Assert.assertEquals("this should be saved instead", viewPage.getContent());
    }
View Full Code Here

        ProfileUserProfilePage pupp = new ProfileUserProfilePage("Admin");
        pupp.gotoPage();
        // Clicking edit should perform inline editing.
        pupp.edit();
        pupp.waitForProfileEditionToLoad();
        Assert.assertTrue(new ViewPage().isInlinePage());
    }
View Full Code Here

    @Test
    public void testInlineEditCanChangeTitle()
    {
        String title = RandomStringUtils.randomAlphanumeric(4);
        getUtil().gotoPage("EditInlineTest", "testInlineEditCanChangeTitle", "inline", "title=" + title);
        ViewPage vp = new InlinePage().clickSaveAndView();
        Assert.assertEquals(title, vp.getDocumentTitle());
    }
View Full Code Here

    /* See XE-168 */
    @Test
    public void testInlineEditCanChangeParent()
    {
        getUtil().gotoPage("EditInlineTest", "testInlineEditCanChangeParent", "inline", "parent=Main.WebHome");
        ViewPage vp = new InlinePage().clickSaveAndView();
        Assert.assertTrue(vp.hasBreadcrumbContent("Wiki Home", false));
    }
View Full Code Here

    @Test
    public void testInlineEditPreservesTitle()
    {
        String title = RandomStringUtils.randomAlphanumeric(4);
        getUtil().gotoPage("EditInlineTest", "testInlineEditPreservesTitle", "save", "title=" + title);
        ViewPage vp = new ViewPage();
        Assert.assertEquals(title, vp.getDocumentTitle());
        InlinePage ip = vp.editInline();
        ViewPage vp2 = ip.clickSaveAndView();
        Assert.assertEquals(title, vp2.getDocumentTitle());
    }
View Full Code Here

    /* See XWIKI-2389 */
    @Test
    public void testInlineEditPreservesParent()
    {
        getUtil().gotoPage("EditInlineTest", "testInlineEditPreservesParent", "save", "parent=Blog.WebHome");
        ViewPage vp = new ViewPage();
        Assert.assertTrue(vp.hasBreadcrumbContent("The Wiki Blog", false));
        InlinePage ip = vp.editInline();
        ViewPage vp2 = ip.clickSaveAndView();
        Assert.assertTrue(vp2.hasBreadcrumbContent("The Wiki Blog", false));
    }
View Full Code Here

TOP

Related Classes of org.xwiki.test.ui.framework.elements.ViewPage

Copyright © 2018 www.massapicom. 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.