assertThat(tmMemoryPage.getListedTranslationMemorys())
.contains(nonUniqueTMId)
.as("The new Translation Memory is listed");
TranslationMemoryEditPage translationMemoryEditPage = tmMemoryPage
.clickCreateNew()
.enterMemoryID(nonUniqueTMId)
.enterMemoryDescription("Meh")
.clickSaveAndExpectFailure();
assertThat(translationMemoryEditPage.expectError(
TranslationMemoryPage.ID_UNAVAILABLE))
.contains(TranslationMemoryPage.ID_UNAVAILABLE)
.as("The Id Is Not Available error is displayed");
translationMemoryEditPage = translationMemoryEditPage
.clickSaveAndExpectFailure();
translationMemoryEditPage.assertNoCriticalErrors(); // RHBZ-1010771
assertThat(translationMemoryEditPage.expectError(
TranslationMemoryPage.ID_UNAVAILABLE))
.contains(TranslationMemoryPage.ID_UNAVAILABLE)
.as("The Id Is Not Available error is displayed");
}