From: Rohan Katkar Date: Thu, 31 Jul 2014 09:00:18 +0000 (+0530) Subject: CRM-15037 Added assertion for standalone contribution and membership webtests. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=16a9c6d8a45278e8bd214aa99fb790af832a97c0;p=civicrm-core.git CRM-15037 Added assertion for standalone contribution and membership webtests. --- diff --git a/tests/phpunit/WebTest/Contribute/StandaloneAddTest.php b/tests/phpunit/WebTest/Contribute/StandaloneAddTest.php index 0e692eac94..fdf129dd83 100644 --- a/tests/phpunit/WebTest/Contribute/StandaloneAddTest.php +++ b/tests/phpunit/WebTest/Contribute/StandaloneAddTest.php @@ -95,7 +95,7 @@ class WebTest_Contribute_StandaloneAddTest extends CiviSeleniumTestCase { $this->waitForElementPresent("check_number"); $this->type("check_number", "check #1041"); $this->click("is_email_receipt"); - + $this->assertTrue($this->isChecked("is_email_receipt"), 'Send Receipt checkbox should be checked.'); $this->type("trxn_id", "P20901X1" . rand(100, 10000)); // soft credit diff --git a/tests/phpunit/WebTest/Member/StandaloneAddTest.php b/tests/phpunit/WebTest/Member/StandaloneAddTest.php index 4ebcf4e790..8123794d5e 100644 --- a/tests/phpunit/WebTest/Member/StandaloneAddTest.php +++ b/tests/phpunit/WebTest/Member/StandaloneAddTest.php @@ -72,6 +72,7 @@ class WebTest_Member_StandaloneAddTest extends CiviSeleniumTestCase { // fill in Status Override? // fill in Record Membership Payment? $this->click("send_receipt"); + $this->assertTrue($this->isChecked("send_receipt"), 'Send Confirmation and Receipt checkbox should be checked.'); $this->click("_qf_Membership_upload"); //View Membership