Skip to content

Commit

Permalink
Merge pull request #10 from vramik/issue-28328
Browse files Browse the repository at this point in the history
Fix error message in test
  • Loading branch information
edewit authored Oct 30, 2024
2 parents 3603d9e + b8a962f commit 989cbb0
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 989cbb0

Please sign in to comment.