Skip to content

Commit

Permalink
Merge pull request #913 from dvsa/fix/paymentWait
Browse files Browse the repository at this point in the history
chore: added wait
  • Loading branch information
sr4850 authored Oct 25, 2024
2 parents 073e901 + 04738e6 commit c552ee3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ public void clickPayAndConfirm(String paymentMethod) {
waitForElementToBeClickable("//*[@id='address[searchPostcode][search]']", SelectorType.XPATH);
waitForElementToBePresent("//*[@id='postcode']");
UniversalActions.clickPay();
waitForTextToBePresent("The payment was made successfully");
if (!paymentMethod.toLowerCase().trim().equals("card"))
waitForTextToBePresent("The payment was made successfully");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@ public void caseworkManageSurrender() throws HttpException {
clickByLinkText("Surrender");
waitForTextToBePresent("Surrender details");
waitAndClick("//*[@for='checks[ecms]']", SelectorType.XPATH);
UniversalActions.closeAlert();
// Refresh page
refreshPageWithJavascript();
waitAndClick("//*[contains(text(),'Digital signature')]", SelectorType.XPATH);
Expand Down

0 comments on commit c552ee3

Please sign in to comment.