tcmsTestPlanIds = 5316, tcmsTestCaseIds = 181709)
@Test(timeout = ZanataTestCase.MAX_SHORT_TEST_DURATION)
public void addLanguageAsDisabled() throws Exception {
String language = "Klingon";
String languageDisplayName = "klingon[Klingon]";
ManageLanguagePage manageLanguagePage = new LoginWorkFlow()
.signIn("admin", "admin")
.goToHomePage()
.goToAdministration()
.goToManageLanguagePage();
assertThat(manageLanguagePage.getLanguageLocales())
.doesNotContain(language)
.as("The language is not listed");
manageLanguagePage = manageLanguagePage
.addNewLanguage()
.inputLanguage(language)
.disableLanguageByDefault()
.saveLanguage();
assertThat(manageLanguagePage.getLanguageLocales())
.contains(language)
.as("The language is listed");
assertThat(manageLanguagePage.languageIsEnabled(language))
.isFalse()
.as("The language is disabled by default");
List<String> enabledLocaleList = manageLanguagePage.goToHomePage()
.goToProjects()
.goToProject("about fedora")
.gotoSettingsTab()
.gotoSettingsLanguagesTab()
.waitForLocaleListVisible()