Package org.zanata.page.projects.projectsettings

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


    public ProjectLanguagesTab gotoSettingsLanguagesTab() {
        log.info("Click Languages settings sub-tab");
        clickWhenTabEnabled(waitForWebElement(settingsLanguagesTab));
        waitForWebElement(By.id("settings-languages"));
        return new ProjectLanguagesTab(getDriver());
    }
View Full Code Here


    @Feature(summary = "The administrator can edit the project languages",
            tcmsTestPlanIds = 5316, tcmsTestCaseIds = 0)
    @Test(timeout = ZanataTestCase.MAX_SHORT_TEST_DURATION)
    public void editProjectLanguages() throws Exception {
        ProjectLanguagesTab projectLanguagesTab = new LoginWorkFlow()
                .signIn("admin", "admin")
                .goToProjects()
                .goToProject("about fedora")
                .gotoSettingsTab()
                .gotoSettingsLanguagesTab()
                .expectEnabledLocaleListCount(3);

        List<String> enabledLocaleList = projectLanguagesTab
                .getEnabledLocaleList();

        assertThat(enabledLocaleList)
                .contains("French[fr]", "Hindi[hi]", "Polish[pl]")
                .as("The enabled list contains three languages");

        assertThat(enabledLocaleList)
                .doesNotContain("English (United States)[en-US]")
                .as("The enabled list does not contain " +
                        "'English (United States)[en-US]'");

        projectLanguagesTab = projectLanguagesTab
                .gotoSettingsTab()
                .gotoSettingsLanguagesTab()
                .removeLocale("pl")
                .expectEnabledLocaleListCount(2);

        enabledLocaleList = projectLanguagesTab
                .getEnabledLocaleList();

        assertThat(enabledLocaleList)
                .doesNotContain("English (United States)[en-US]")
                .doesNotContain("Polish[pl]")
                .as("The enabled list does not contain 'US English' or Polish");

        enabledLocaleList = projectLanguagesTab
                .gotoSettingsTab()
                .gotoSettingsLanguagesTab()
                .enterSearchLanguage("en-US")
                .addLanguage("English (United States)[en-US]")
                .expectEnabledLocaleListCount(3)
View Full Code Here

TOP

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

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.