From b27a5d05b494947bc174704646c688f0f970c8d4 Mon Sep 17 00:00:00 2001 From: vramik Date: Wed, 30 Oct 2024 10:10:02 +0100 Subject: [PATCH] Fix error message in test Signed-off-by: vramik --- .../org/keycloak/testsuite/actions/TermsAndConditionsTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/actions/TermsAndConditionsTest.java b/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/actions/TermsAndConditionsTest.java index 7b4a247f53..a0252347ad 100755 --- a/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/actions/TermsAndConditionsTest.java +++ b/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/actions/TermsAndConditionsTest.java @@ -167,7 +167,7 @@ public class TermsAndConditionsTest extends AbstractTestRealmKeycloakTest { attributes.get(TermsAndConditions.USER_ATTRIBUTE)); } 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")); WebElement tryAgainButton = DroneUtils.getCurrentDriver().findElement(By.tagName("button"));