From 87fd45508263ac3398c74a536ccf7190c4651cb4 Mon Sep 17 00:00:00 2001 From: Rohan Katkar Date: Wed, 30 Jul 2014 17:26:55 +0530 Subject: [PATCH] Webtest fix for new contribution record and membership. --- tests/phpunit/WebTest/Contribute/StandaloneAddTest.php | 3 +++ tests/phpunit/WebTest/Member/StandaloneAddTest.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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 -- 2.25.1