Webtest fix for new contribution record and membership.
authorRohan Katkar <rohan.katkar@webaccess.co.in>
Wed, 30 Jul 2014 11:56:55 +0000 (17:26 +0530)
committerRohan Katkar <rohan.katkar@webaccess.co.in>
Wed, 30 Jul 2014 11:56:55 +0000 (17:26 +0530)
tests/phpunit/WebTest/Contribute/StandaloneAddTest.php
tests/phpunit/WebTest/Member/StandaloneAddTest.php

index 467d5991ce0946c2c6b36f5813d78f4c54b45994..0e692eac94c4e2de62064e627ae41aaf4981061f 100644 (file)
@@ -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?
index 7c375c1ec72e4e997da2eb9e20734f4179835f30..4ebcf4e79021ae286aa4cdae6111221d2113d39a 100644 (file)
@@ -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