Package org.zanata.page.projectversion.versionsettings

Examples of org.zanata.page.projectversion.versionsettings.VersionLanguagesTab


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


                .signIn("admin", "admin")
                .loggedInAs())
                .isEqualTo("admin")
                .as("Admin user has logged in");

        VersionLanguagesTab versionLanguagesTab = new ProjectWorkFlow()
                .goToProjectByName("langoverride")
                .gotoVersion("overridelangtest")
                .gotoSettingsTab()
                .gotoSettingsLanguagesTab()
                .clickInheritCheckbox()
                .waitForLocaleListVisible();

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

        assertThat(enabledLocaleList.isEmpty())
                .as("The enabled list contains no languages");

        versionLanguagesTab = versionLanguagesTab
                .gotoSettingsTab()
                .gotoSettingsLanguagesTab()
                .enterSearchLanguage("en-US")
                .addLocale("English (United States)[en-US]");
        versionLanguagesTab.expectNotification("Language \"English " +
                "(United States)\" has been added to version.");
        versionLanguagesTab = versionLanguagesTab
                .waitForLanguagesContains("English (United States)[en-US]");

        versionLanguagesTab = versionLanguagesTab
                .enterSearchLanguage("fr")
                .addLocale("French[fr]");
        versionLanguagesTab.expectNotification("Language \"French\" has " +
                "been added to version.");
        versionLanguagesTab = versionLanguagesTab
                .waitForLanguagesContains("French[fr]");

        enabledLocaleList = versionLanguagesTab.getEnabledLocaleList();

        assertThat(enabledLocaleList)
                .contains("English (United States)[en-US]", "French[fr]")
                .as("Two languages are available to translate");
    }
View Full Code Here

TOP

Related Classes of org.zanata.page.projectversion.versionsettings.VersionLanguagesTab

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.