Fix error message in test

Signed-off-by: vramik <vramik@redhat.com>
This commit is contained in:
vramik 2024-10-30 10:10:02 +01:00 committed by Pedro Igor
parent f9f9a313b3
commit b27a5d05b4

View file

@ -167,7 +167,7 @@ public class TermsAndConditionsTest extends AbstractTestRealmKeycloakTest {
attributes.get(TermsAndConditions.USER_ATTRIBUTE)); attributes.get(TermsAndConditions.USER_ATTRIBUTE));
} }
assertThat(DroneUtils.getCurrentDriver().getTitle(), equalTo("Account Management")); assertThat(DroneUtils.getCurrentDriver().getTitle(), equalTo("Account Management"));
Assert.assertTrue(DroneUtils.getCurrentDriver().getPageSource().contains("You need to agree to Terms and Conditions")); Assert.assertTrue(DroneUtils.getCurrentDriver().getPageSource().contains("You need to accept the Terms and Conditions to continue"));
Assert.assertFalse(DroneUtils.getCurrentDriver().getPageSource().contains("An unexpected error occurred")); Assert.assertFalse(DroneUtils.getCurrentDriver().getPageSource().contains("An unexpected error occurred"));
WebElement tryAgainButton = DroneUtils.getCurrentDriver().findElement(By.tagName("button")); WebElement tryAgainButton = DroneUtils.getCurrentDriver().findElement(By.tagName("button"));