Package org.xwiki.administration.test.po

Examples of org.xwiki.administration.test.po.TemplateProviderInlinePage.clickSaveAndView()


        templateProviderInline.setTemplateName("My Template");
        templateProviderInline.setTemplate(templateFullName);
        if (saveAndEdit) {
            templateProviderInline.setSaveAndEdit();
        }
        return templateProviderInline.clickSaveAndView();
    }

    /**
     * Tests if a new page can be created from a template.
     */
 
View Full Code Here


        templateProviderView.editInline();
        TemplateProviderInlinePage templateProviderInline = new TemplateProviderInlinePage();
        List<String> allowedSpaces = new ArrayList<String>();
        allowedSpaces.add(getTestClassName());
        templateProviderInline.setSpaces(allowedSpaces);
        templateProviderView = templateProviderInline.clickSaveAndView();

        // Verify we can still create a page from template in the test space
        createPagePage = templateProviderView.createPage();
        // Make sure we get in create mode.
        Assert.assertTrue(getUtil().isInCreateMode());
View Full Code Here

            ViewPage templateViewPage = new ViewPage();
            templateViewPage.editInline();
            TemplateProviderInlinePage providerEditPage = new TemplateProviderInlinePage();
            if (providerEditPage.isPageTemplate()) {
                providerEditPage.excludeSpaces(spacesToExclude);
                providerEditPage.clickSaveAndView();
            }

            // go back to the admin page, to leave this in a valid state
            sectionPage = TemplatesAdministrationSectionPage.gotoPage();
            existingTemplatesLinks = sectionPage.getExistingTemplatesLinks();
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.