@Feature(summary = "The user cannot select both printf formats for " +
"validation options",
tcmsTestPlanIds = 5316, tcmsTestCaseIds = 0)
@Test(timeout = ZanataTestCase.MAX_SHORT_TEST_DURATION)
public void printfAndPositionalPrintfAreExclusive() throws Exception {
VersionTranslationTab versionTranslationTab = new LoginWorkFlow()
.signIn("admin", "admin")
.goToProjects()
.goToProject("about fedora")
.gotoVersion("master")
.gotoSettingsTab()
.gotoSettingsTranslationTab()
.setValidationLevel(
"Positional printf (XSI extension)", "Error");
versionTranslationTab.expectNotification(
"Updated validation Positional printf (XSI extension) to Error.");
assertThat(versionTranslationTab
.isValidationLevel("Positional printf (XSI extension)", "Error"))
.isTrue()
.as("The Positional printf level is Error");
assertThat(versionTranslationTab
.isValidationLevel("Printf variables", "Off"))
.isTrue()
.as("The Printf level is Off");
versionTranslationTab.setValidationLevel("Printf variables", "Error");
versionTranslationTab.expectNotification(
"Updated validation Printf variables to Error.");
assertThat(versionTranslationTab
.isValidationLevel("Printf variables", "Error"))
.isTrue()
.as("The Printf level is Error");
assertThat(versionTranslationTab
.isValidationLevel("Positional printf (XSI extension)", "Off"))
.isTrue()
.as("The Positional printf level is Off");
}