From 8dba2a0d301b6e34646f99468166be9cf95e2c4c Mon Sep 17 00:00:00 2001 From: Stefan Ranoszek Date: Tue, 3 Sep 2024 07:58:14 +0100 Subject: [PATCH] chore: assert fix --- .../testing/framework/Journeys/licence/InternalUIJourney.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/org/dvsa/testing/framework/Journeys/licence/InternalUIJourney.java b/src/test/java/org/dvsa/testing/framework/Journeys/licence/InternalUIJourney.java index b6f4a45a7..5ec213acb 100644 --- a/src/test/java/org/dvsa/testing/framework/Journeys/licence/InternalUIJourney.java +++ b/src/test/java/org/dvsa/testing/framework/Journeys/licence/InternalUIJourney.java @@ -151,7 +151,7 @@ public void deleteDocument() { public void checkLicenceStatus(String arg0) { waitForElementToBeClickable("menu-admin-dashboard/admin-your-account/details", SelectorType.ID); waitForTextToBePresent("Licence status"); - assertTrue(getElementValueByText("//strong[contains(@class,'govuk-tag')]", SelectorType.XPATH).equalsIgnoreCase("surrendered")); + assertEquals(arg0.toUpperCase(), getElementValueByText("//strong[contains(@class,'govuk-tag')]", SelectorType.XPATH)); } public void closeCase() {