From: Rohan Katkar Date: Wed, 30 Jul 2014 11:56:55 +0000 (+0530) Subject: Webtest fix for new contribution record and membership. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=87fd45508263ac3398c74a536ccf7190c4651cb4;p=civicrm-core.git Webtest fix for new contribution record and membership. --- diff --git a/tests/phpunit/WebTest/Contribute/StandaloneAddTest.php b/tests/phpunit/WebTest/Contribute/StandaloneAddTest.php index 467d5991ce..0e692eac94 100644 --- a/tests/phpunit/WebTest/Contribute/StandaloneAddTest.php +++ b/tests/phpunit/WebTest/Contribute/StandaloneAddTest.php @@ -126,6 +126,9 @@ class WebTest_Contribute_StandaloneAddTest extends CiviSeleniumTestCase { // Clicking save. $this->click("_qf_Contribution_upload"); + // Ask for confirmation to send a receipt to the contributor on 'is_email_reciept' check + $this->assertTrue((bool)preg_match("/^Click OK to save this contribution record AND send a receipt to the contributor now./",$this->getConfirmation())); + $this->chooseOkOnNextConfirmation(); $this->waitForPageToLoad($this->getTimeoutMsec()); // Is status message correct? diff --git a/tests/phpunit/WebTest/Member/StandaloneAddTest.php b/tests/phpunit/WebTest/Member/StandaloneAddTest.php index 7c375c1ec7..4ebcf4e790 100644 --- a/tests/phpunit/WebTest/Member/StandaloneAddTest.php +++ b/tests/phpunit/WebTest/Member/StandaloneAddTest.php @@ -71,7 +71,7 @@ class WebTest_Member_StandaloneAddTest extends CiviSeleniumTestCase { // fill in Status Override? // fill in Record Membership Payment? - + $this->click("send_receipt"); $this->click("_qf_Membership_upload"); //View Membership