Examples of gotoPage()


Examples of org.xwiki.test.ui.administration.elements.GlobalRightsAdministrationSectionPage.gotoPage()

            // We use startsWith since the URL contains a jsessionid and a srid.
            Assert.assertTrue(getDriver().getCurrentUrl().startsWith(getUtil().getURL("SomeSpace", "SomePage")));
        } finally {
            GlobalRightsAdministrationSectionPage grasp = new GlobalRightsAdministrationSectionPage();
            grasp.gotoPage();
            if (!grasp.isAuthenticated()) {
                getDriver().get(getUtil().getURLToLoginAsAdminAndGotoPage(grasp.getURL()));
            }
            grasp.unforceAuthenticatedView();
        }
View Full Code Here

Examples of org.xwiki.test.ui.administration.elements.ProfileUserProfilePage.gotoPage()

    @Test
    public void testEditButtonTriggersInlineEditing()
    {
        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

Examples of org.xwiki.test.ui.administration.elements.ProfileUserProfilePage.gotoPage()

    public void testEditModeCanBeSet()
    {
        String initialContent = null;
        try {
            ProfileUserProfilePage pupp = new ProfileUserProfilePage("Admin");
            pupp.gotoPage();
            WikiEditPage wep = pupp.editWiki();
            initialContent = wep.getContent();
            wep.setContent("{{velocity}}$xcontext.setDisplayMode('edit'){{/velocity}}\n" + initialContent);
            wep.clickSaveAndView();
            Assert.assertTrue(getDriver().getPageSource().contains("XWiki.XWikiUsers_0_last_name"));
View Full Code Here

Examples of org.xwiki.test.ui.administration.elements.TemplatesAdministrationSectionPage.gotoPage()

        editTemplatePage.setContent(templateContent);
        editTemplatePage.clickSaveAndView();

        // Create the template provider
        TemplatesAdministrationSectionPage sectionPage = new TemplatesAdministrationSectionPage();
        sectionPage.gotoPage();
        TemplateProviderInlinePage templateProviderInline =
            sectionPage.createTemplateProvider(space, templateProviderName);
        templateProviderInline.setTemplateName("My Template");
        templateProviderInline.setTemplate(templateFullName);
        if (saveAndEdit) {
View Full Code Here

Examples of org.xwiki.test.ui.administration.elements.TemplatesAdministrationSectionPage.gotoPage()

        getUtil().deletePage(space, "NewUnexistingPage");
        getUtil().deletePage(space, "NewPage");
        getUtil().deletePage(space, "NewLinkedPage");
        // go through all the templates and make sure they are disabled on this space
        TemplatesAdministrationSectionPage sectionPage = new TemplatesAdministrationSectionPage();
        sectionPage.gotoPage();

        // get the links to existing templates, navigate to each of them and disable the current space
        List<String> spacesToExclude = new ArrayList<String>();
        spacesToExclude.add(space);
        List<WebElement> existingTemplatesLinks = sectionPage.getExistingTemplatesLinks();
View Full Code Here

Examples of org.xwiki.test.ui.administration.elements.TemplatesAdministrationSectionPage.gotoPage()

            TemplateProviderInlinePage providerEditPage = new TemplateProviderInlinePage();
            providerEditPage.excludeSpaces(spacesToExclude);
            providerEditPage.clickSaveAndView();

            // go back to the admin page, to leave this in a valid state
            sectionPage.gotoPage();
            existingTemplatesLinks = sectionPage.getExistingTemplatesLinks();
        }

        // TODO: should reset these template settings at the end of the test, to leave things in the same state as they
        // were at the beginning of the test
View Full Code Here

Examples of org.xwiki.test.ui.framework.elements.CreatePagePage.gotoPage()

        // test that this page has no parent
        Assert.assertEquals("", unexistingPageEdit.getParent());

        // create an empty page when there is a template available, make sure it's empty
        CreatePagePage createEmptyPage = new CreatePagePage();
        createEmptyPage.gotoPage();
        Assert.assertTrue(createEmptyPage.getAvailableTemplateSize() > 0);
        WYSIWYGEditPage editEmptyPage = createEmptyPage.createPage(getTestClassName(), "EmptyPage");
        Assert.assertTrue(getUtil().isInWYSIWYGEditMode());
        // wait to load editor to make sure that what we're saving is the content that is supposed to be in this
        // document
View Full Code Here

Examples of org.xwiki.test.ui.framework.elements.CreatePagePage.gotoPage()

        Assert.assertEquals(currentURL, getDriver().getCurrentUrl());
        // and check that an error is displayed to the user
        createPagePage.waitForFieldErrorMessage();

        // Verify the template we have removed is no longer available.
        createEmptyPage.gotoPage();

        // make sure that the template provider is not in the list of templates
        Assert.assertFalse(createPagePage.getAvailableTemplates().contains(templateProviderFullName));
    }
View Full Code Here

Examples of org.xwiki.test.ui.panels.elements.NewPagePanel.gotoPage()

     */
    @Test
    public void testCreatePageFromPanel()
    {
        NewPagePanel newPagePanel = new NewPagePanel();
        newPagePanel.gotoPage();

        WYSIWYGEditPage editPage = newPagePanel.createPage(getTestClassName(), getTestMethodName());

        Assert.assertEquals(getTestMethodName(), editPage.getDocumentTitle());
        Assert.assertEquals(getTestMethodName(), editPage.getMetaDataValue("page"));
View Full Code Here

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

    // Used example from JIRA issue
    @Test
    public void testAttachmentsPane()
    {
        AllDocsPage docsPage = new AllDocsPage();
        docsPage.gotoPage();
        LiveTableElement liveTable = docsPage.clickAttachmentsTab();
        // Here we test if all the Columns are displayed
        Assert.assertTrue("No Filename column found", liveTable.hasColumn("Filename"));
        Assert.assertTrue("No Space column found", liveTable.hasColumn("Space"));
        Assert.assertTrue("No Date column found", liveTable.hasColumn("Date"));
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.