Examples of openProgressSection()


Examples of org.xwiki.extension.test.po.ExtensionPane.openProgressSection()

        ExtensionPane extensionPane =
            adminPage.getSearchBar().clickAdvancedSearch().search(extensionId).getExtension(0);
        extensionPane = extensionPane.install();

        // Assert the install plan.
        List<DependencyPane> installPlan = extensionPane.openProgressSection().getJobPlan();
        Assert.assertEquals(2, installPlan.size());
        Assert.assertEquals(dependencyId, installPlan.get(0).getId());
        Assert.assertEquals(extensionId, installPlan.get(1).getId());

        // Finish the install and assert the install log.
View Full Code Here

Examples of org.xwiki.extension.test.po.ExtensionPane.openProgressSection()

        Assert.assertEquals(extensionId, extensionPane.getId());
        Assert.assertNotNull(extensionPane.getUninstallButton());

        // Check if the progress log is persisted.
        extensionPane = extensionPane.showDetails();
        log = extensionPane.openProgressSection().getJobLog();
        Assert.assertEquals(logSize, log.size());
        Assert.assertEquals("info", log.get(0).getLevel());
        Assert.assertEquals("Starting job of type [install] with identifier "
            + "[extension/action/alice-xar-extension/wiki:xwiki]", log.get(0).getMessage());
        Assert.assertEquals("info", log.get(logSize - 1).getLevel());
View Full Code Here

Examples of org.xwiki.extension.test.po.ExtensionPane.openProgressSection()

        ExtensionPane extensionPane =
            adminPage.getSearchBar().clickAdvancedSearch().search(dependencyId).getExtension(0);
        extensionPane = extensionPane.uninstall();

        // Check the uninstall plan. Both extensions should be included.
        List<DependencyPane> uninstallPlan = extensionPane.openProgressSection().getJobPlan();
        Assert.assertEquals(2, uninstallPlan.size());

        Assert.assertEquals(extensionId, uninstallPlan.get(0).getId());
        Assert.assertEquals("installed", uninstallPlan.get(0).getStatus());
        Assert.assertEquals("Installed", uninstallPlan.get(0).getStatusMessage());
View Full Code Here

Examples of org.xwiki.extension.test.po.ExtensionPane.openProgressSection()

        Assert.assertEquals("installed", uninstallPlan.get(1).getStatus());
        Assert.assertEquals("Installed", uninstallPlan.get(1).getStatusMessage());

        // Check the confirmation to delete the unused wiki pages.
        extensionPane = extensionPane.confirm();
        UnusedPagesPane unusedPages = extensionPane.openProgressSection().getUnusedPages();
        Assert.assertTrue(unusedPages.contains("ExtensionTest", "Alice"));
        Assert.assertTrue(unusedPages.contains("ExtensionTest", "Bob"));

        // Finish the uninstall and check the log.
        extensionPane = extensionPane.confirm();
View Full Code Here

Examples of org.xwiki.extension.test.po.ExtensionPane.openProgressSection()

        Assert.assertTrue(unusedPages.contains("ExtensionTest", "Alice"));
        Assert.assertTrue(unusedPages.contains("ExtensionTest", "Bob"));

        // Finish the uninstall and check the log.
        extensionPane = extensionPane.confirm();
        List<LogItemPane> log = extensionPane.openProgressSection().getJobLog();
        Assert.assertTrue(log.size() > 2);
        Assert.assertEquals("info", log.get(2).getLevel());
        Assert.assertEquals("Resolving extension [bob-xar-extension 2.5-milestone-2] from namespace [Home]", log
            .get(2).getMessage());
        Assert.assertEquals("info", log.get(log.size() - 1).getLevel());
View Full Code Here

Examples of org.xwiki.extension.test.po.ExtensionPane.openProgressSection()

        adminPage = ExtensionAdministrationPage.gotoPage().clickInstalledExtensionsSection();
        extensionPane = adminPage.getSearchBar().clickAdvancedSearch().search(extensionId).getExtension(0);
        extensionPane = extensionPane.uninstall();

        // Check the uninstall plan. Only one extension should be included.
        uninstallPlan = extensionPane.openProgressSection().getJobPlan();
        Assert.assertEquals(1, uninstallPlan.size());
        Assert.assertEquals(extensionId, uninstallPlan.get(0).getId());

        // Check the confirmation to delete the unused wiki pages.
        extensionPane = extensionPane.confirm();
View Full Code Here

Examples of org.xwiki.extension.test.po.ExtensionPane.openProgressSection()

        Assert.assertEquals(1, uninstallPlan.size());
        Assert.assertEquals(extensionId, uninstallPlan.get(0).getId());

        // Check the confirmation to delete the unused wiki pages.
        extensionPane = extensionPane.confirm();
        unusedPages = extensionPane.openProgressSection().getUnusedPages();
        Assert.assertTrue(unusedPages.contains("ExtensionTest", "Alice"));
        Assert.assertFalse(unusedPages.contains("ExtensionTest", "Bob"));

        // Finish the uninstall and check the log.
        log = extensionPane.confirm().openProgressSection().getJobLog();
View Full Code Here

Examples of org.xwiki.extension.test.po.ExtensionPane.openProgressSection()

        Assert.assertEquals("remote-installed", extensionPane.getStatus());
        Assert.assertEquals("Version 1.3 is installed", extensionPane.getStatusMessage());
        extensionPane = extensionPane.upgrade();

        // Check the upgrade plan.
        List<DependencyPane> upgradePlan = extensionPane.openProgressSection().getJobPlan();
        Assert.assertEquals(1, upgradePlan.size());
        Assert.assertEquals(extensionId, upgradePlan.get(0).getName());
        Assert.assertEquals(newVersion, upgradePlan.get(0).getVersion());
        Assert.assertEquals("remote-installed", upgradePlan.get(0).getStatus());
        Assert.assertEquals("Version 1.3 is installed", upgradePlan.get(0).getStatusMessage());
View Full Code Here

Examples of org.xwiki.extension.test.po.ExtensionPane.openProgressSection()

        // Finish the upgrade and check the upgrade log.
        extensionPane = extensionPane.confirm();
        Assert.assertEquals("installed", extensionPane.getStatus());
        Assert.assertEquals("Installed", extensionPane.getStatusMessage());
        List<LogItemPane> log = extensionPane.openProgressSection().getJobLog();
        Assert.assertTrue(log.size() > 2);
        Assert.assertEquals("info", log.get(2).getLevel());
        Assert.assertEquals("Resolving extension [alice-xar-extension 2.1.4] on namespace [Home]", log.get(2)
            .getMessage());
        Assert.assertEquals("info", log.get(log.size() - 1).getLevel());
View Full Code Here

Examples of org.xwiki.extension.test.po.ExtensionPane.openProgressSection()

        ProgressBarPane progressBar = extensionPane.getProgressBar();
        Assert.assertEquals(83, progressBar.getPercent());
        Assert.assertEquals("Conflict between [@@ -1,1 +1,1 @@] and [@@ -1,1 +1,1 @@]", progressBar.getMessage());

        ExtensionProgressPane progressPane = extensionPane.openProgressSection();
        WebElement jobLogLabel = progressPane.getJobLogLabel();
        Assert.assertEquals("INSTALL LOG".toLowerCase(), jobLogLabel.getText().toLowerCase());
        // The job log is collapsed when the job is waiting for user input so we need to expand it before asserting its
        // content (otherwise #getText() returns the empty string because the text is not visible).
        jobLogLabel.click();
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.