Examples of gotoPage()


Examples of org.xwiki.test.ui.xe.elements.AllDocsPage.gotoPage()

{
    @Test
    public void testTableViewActions() throws Exception
    {
        AllDocsPage page = new AllDocsPage();
        page.gotoPage();

        // Test 1: Verify that the Action column is displayed only for administrators.
        LiveTableElement livetable = page.clickIndexTab();
        Assert.assertTrue("No Actions column found", livetable.hasColumn("Actions"));
        page.logout();
View Full Code Here

Examples of org.xwiki.test.ui.xe.elements.HomePage.gotoPage()

        changePasswordPage.submit();

        // Logout
        getUtil().forceGuestUser();
        HomePage home = new HomePage();
        home.gotoPage();
        Assert.assertFalse(home.isAuthenticated());

        // Login with the new password
        getDriver().get(getUtil().getURLToLoginAs(this.userName, newPassword));
        Assert.assertTrue(home.isAuthenticated());
View Full Code Here

Examples of org.xwiki.test.ui.xe.elements.HomePage.gotoPage()

        String space = this.getClass().getSimpleName() + ((int) (Math.random() * 1000));
        getUtil().deletePage(space, "WebHome");

        // start creating a space
        HomePage homePage = new HomePage();
        homePage.gotoPage();
        CreateSpacePage createSpace = homePage.createSpace();

        WYSIWYGEditPage editSpaceWebhomePage = createSpace.createSpace(space);
        // expect wysiwyg edit mode for the webhome of the space
        Assert.assertTrue(getUtil().isInWYSIWYGEditMode());
View Full Code Here

Examples of org.xwiki.test.ui.xe.elements.HomePage.gotoPage()

        String existingSpace = this.getClass().getSimpleName() + ((int) (Math.random() * 1000));
        getUtil().createPage(existingSpace, "WebHome", "{{spaceindex /}}", "New random space");

        // 1/ create an empty page that already exists
        HomePage homePage = new HomePage();
        homePage.gotoPage();
        CreatePagePage createPage = homePage.createPage();
        createPage.setSpace(space);
        createPage.setPage(existingPageName);
        String currentURL = getDriver().getCurrentUrl();
        createPage.clickCreate();
View Full Code Here

Examples of org.xwiki.test.ui.xe.elements.HomePage.gotoPage()

        Assert.assertEquals(currentURL, getDriver().getCurrentUrl());
        createPage.waitForErrorMessage();

        // 2/ create a page from template that already exists
        // restart everything to make sure it's not the error before
        homePage.gotoPage();
        createPage = homePage.createPage();
        createPage.setSpace(space);
        createPage.setPage(existingPageName);
        createPage.setTemplate(space + "." + templateProviderName);
        currentURL = getDriver().getCurrentUrl();
View Full Code Here

Examples of org.xwiki.test.ui.xe.elements.HomePage.gotoPage()

        // error
        Assert.assertEquals(currentURL, getDriver().getCurrentUrl());
        createPage.waitForErrorMessage();

        // 3/ create a space that already exists
        homePage.gotoPage();
        CreateSpacePage createSpace = homePage.createSpace();
        currentURL = getDriver().getCurrentUrl();
        // strip the parameters out of this URL
        currentURL =
            currentURL.substring(0, currentURL.indexOf('?') > 0 ? currentURL.indexOf('?') : currentURL.length());
View Full Code Here

Examples of org.xwiki.test.ui.xe.elements.HomePage.gotoPage()

     */
    @Test
    public void testCreateSpace()
    {
        HomePage homePage = new HomePage();
        homePage.gotoPage();
        WYSIWYGEditPage editPage = homePage.getSpacesPane().createSpace(getTestClassName());

        // Verify that space creation uses the space name as the space home page's title
        Assert.assertEquals(getTestClassName(), editPage.getDocumentTitle());

View Full Code Here

Examples of org.xwiki.test.ui.xe.elements.HomePage.gotoPage()

        editPage.setContent("Content");
        editPage.clickSaveAndView();

        // Navigate to the Home Page and click on the SpaceIndex.
        HomePage homePage = new HomePage();
        homePage.gotoPage();
        homePage.getSpacesPane().clickSpaceIndex(spaceName);

        // TODO: Improve the following test by asserting the content of the Livetable in the SpaceIndexPage
        Assert.assertEquals(getUtil().getURL("Main", "SpaceIndex", "view", "space=" + getUtil().escapeURL(spaceName)),
            getDriver().getCurrentUrl());
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.