Package org.zanata.page.projects.projectsettings

Examples of org.zanata.page.projects.projectsettings.ProjectPermissionsTab


    public ProjectPermissionsTab gotoSettingsPermissionsTab() {
        log.info("Click Permissions settings sub-tab");
        clickWhenTabEnabled(waitForWebElement(settingsPermissionTab));
        waitForWebElement(By.id("settings-permissions"));
        return new ProjectPermissionsTab(getDriver());
    }
View Full Code Here


        return projects.goToProject(projectName);
    }

    public ProjectPermissionsTab addMaintainer(String projectName,
                                               final String username) {
        ProjectPermissionsTab projectPermissionsTab = goToHome()
                .goToProjects()
                .goToProject(projectName)
                .gotoSettingsTab()
                .gotoSettingsPermissionsTab()
                .enterSearchMaintainer(username)
                .selectSearchMaintainer(username);
        projectPermissionsTab.waitForMaintainersContains(username);
        return new ProjectPermissionsTab(driver);
    }
View Full Code Here

        return new ProjectPermissionsTab(driver);
    }

    public ProjectPermissionsTab removeMaintainer(String projectName,
            final String username) {
        ProjectPermissionsTab projectPermissionsTab =
                new BasicWorkFlow().goToHome()
                        .goToProjects()
                        .goToProject(projectName)
                        .gotoSettingsTab()
                        .gotoSettingsPermissionsTab();

        projectPermissionsTab.clickRemoveOn(username)
                .waitForMaintainersNotContains(username);

        return new ProjectPermissionsTab(driver);
    }
View Full Code Here

    @Feature(summary = "The user can view maintainers for a project",
            tcmsTestPlanIds = 5316, tcmsTestCaseIds = 0)
    @Test(timeout = ZanataTestCase.MAX_SHORT_TEST_DURATION)
    public void maintainerDetailsAreDisplayed() throws Exception {
        ProjectPermissionsTab projectPermissionsTab = new LoginWorkFlow()
                .signIn("admin", "admin")
                .goToProjects()
                .goToProject("about fedora")
                .gotoSettingsTab()
                .gotoSettingsPermissionsTab();

        assertThat(projectPermissionsTab.getSettingsMaintainersList())
                .contains("admin")
                .as("The admin user is shown in the list");

        ProjectMaintainersPage projectMaintainersPage = projectPermissionsTab
                .gotoMaintainersTab();

        assertThat(projectMaintainersPage.getMaintainers())
                .contains("Administrator @admin")
                .as("The admin user is shown in the list");
View Full Code Here

    @Feature(summary = "The administrator can add a maintainer to a project",
            tcmsTestPlanIds = 5316, tcmsTestCaseIds = 0)
    @Test(timeout = ZanataTestCase.MAX_SHORT_TEST_DURATION)
    public void addMaintainerAsAdmin() throws Exception {
        ProjectPermissionsTab projectPermissionsTab = new LoginWorkFlow()
                .signIn("admin", "admin")
                .goToProjects()
                .goToProject("about fedora")
                .gotoSettingsTab()
                .gotoSettingsPermissionsTab();

        assertThat(projectPermissionsTab.getSettingsMaintainersList())
                .doesNotContain("translator")
                .as("The translator user is not a maintainer");

        projectPermissionsTab = new ProjectWorkFlow()
                .addMaintainer("about fedora", "translator");

        assertThat(projectPermissionsTab.getSettingsMaintainersList())
                .contains("translator")
                .as("The translator user is a maintainer");

        ProjectMaintainersPage projectMaintainersPage = projectPermissionsTab
                .gotoMaintainersTab();

        assertThat(projectMaintainersPage.getMaintainers())
                .contains("translator @translator")
                .as("The translator user is shown in the list");
View Full Code Here

                .signIn("translator", "translator")
                .loggedInAs())
                .isEqualTo("translator")
                .as("Translator has signed in");

        ProjectPermissionsTab projectPermissionsTab = new ProjectWorkFlow()
                .goToProjectByName("addmaintainer")
                .gotoSettingsTab()
                .gotoSettingsPermissionsTab()
                .enterSearchMaintainer("glossarist")
                .selectSearchMaintainer("glossarist");

        projectPermissionsTab.waitForMaintainersContains("glossarist");

        assertThat(projectPermissionsTab.getSettingsMaintainersList())
                .contains("glossarist")
                .as("The glossarist user was added as a maintainer");

        ProjectMaintainersPage projectMaintainersPage = projectPermissionsTab
                .gotoMaintainersTab();

        assertThat(projectMaintainersPage.getMaintainers())
                .contains("glossarist @glossarist")
                .as("The glossarist user is shown in the list");
View Full Code Here

                .addMaintainer("removemaintainer", "glossarist")
                .getSettingsMaintainersList())
                .contains("glossarist")
                .as("Glossarist maintainer is added");

        ProjectPermissionsTab projectPermissionsTab = new ProjectWorkFlow()
                .removeMaintainer("removemaintainer", "glossarist");

        assertThat(projectPermissionsTab.getSettingsMaintainersList())
                .doesNotContain("glossarist")
                .as("Glossarist maintainer is removed");

        ProjectMaintainersPage projectMaintainersPage = projectPermissionsTab
                .gotoMaintainersTab();

        assertThat(projectMaintainersPage.getMaintainers())
                .doesNotContain("Glossarist @glossarist")
                .as("The glossarist user is not in the list");
View Full Code Here

                .signIn("translator", "translator")
                .loggedInAs())
                .isEqualTo("translator")
                .as("Translator has signed in");

        ProjectPermissionsTab projectPermissionsTab = new ProjectWorkFlow()
                .addMaintainer("removemaintainer", "admin");

        assertThat(projectPermissionsTab.getSettingsMaintainersList())
                .contains("admin")
                .as("admin maintainer is added");

        projectPermissionsTab.slightPause();
        ProjectBasePage projectBasePage = projectPermissionsTab
                .clickRemoveOnSelf("translator");
        projectBasePage.slightPause();
        projectBasePage.expectNotification("Maintainer \"translator\" has " +
                "been removed from project.");
        ProjectVersionsPage projectVersionsPage = projectBasePage
View Full Code Here

TOP

Related Classes of org.zanata.page.projects.projectsettings.ProjectPermissionsTab

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.