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() {