.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");
}