Skip to content

Commit

Permalink
Fix error message in test
Browse files Browse the repository at this point in the history
Signed-off-by: vramik <[email protected]>
  • Loading branch information
vramik committed Oct 30, 2024
1 parent 3603d9e commit b8a962f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ public void termsDeclined() {
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"));
Expand Down

0 comments on commit b8a962f

Please sign in to comment.