X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=tests%2Fphpunit%2FWebTest%2FContribute%2FOnlineMultiplePaymentProcessorTest.php;h=5913088d622773be60350504d42dec2c49603b97;hb=5548f5f9352411b9b27c511cad8d3b8b52e95874;hp=e2e63971f18110b15f7353010e6f4bc3d6375ca9;hpb=7fadc48bddac75419d5d7afded9da2e0895114db;p=civicrm-core.git diff --git a/tests/phpunit/WebTest/Contribute/OnlineMultiplePaymentProcessorTest.php b/tests/phpunit/WebTest/Contribute/OnlineMultiplePaymentProcessorTest.php index e2e63971f1..5913088d62 100644 --- a/tests/phpunit/WebTest/Contribute/OnlineMultiplePaymentProcessorTest.php +++ b/tests/phpunit/WebTest/Contribute/OnlineMultiplePaymentProcessorTest.php @@ -174,15 +174,15 @@ class WebTest_Contribute_OnlineMultiplePaymentProcessorTest extends CiviSelenium $xpath = "xpath=//label[text() = '{$payLaterText}']/preceding-sibling::input[1]"; $this->click($xpath); - $this->clickLink("_qf_Main_upload-bottom", "_qf_Confirm_next-bottom"); + $this->click("_qf_Main_upload-bottom"); + $this->waitForElementPresent("xpath=//div[@class='bold pay_later_receipt-section']"); $payLaterInstructionsText = "Pay later instructions $hash"; $this->verifyText("xpath=//div[@class='bold pay_later_receipt-section']/p", $payLaterInstructionsText); - $this->click("_qf_Confirm_next-bottom"); - $this->waitForPageToLoad($this->getTimeoutMsec()); - $this->verifyText("xpath=//div[@id='help']/div/p", $payLaterInstructionsText); + $this->waitForElementPresent("xpath=//div[@class='help']/div/p"); + $this->verifyText("xpath=//div[@class='help']/div/p", $payLaterInstructionsText); //login to check contribution $this->openCiviPage("contribute/search", "reset=1", 'contribution_date_low');