CRM-15037 Added assertion for standalone contribution and membership webtests.
authorRohan Katkar <rohan.katkar@webaccess.co.in>
Thu, 31 Jul 2014 09:00:18 +0000 (14:30 +0530)
committerRohan Katkar <rohan.katkar@webaccess.co.in>
Thu, 31 Jul 2014 09:00:18 +0000 (14:30 +0530)
tests/phpunit/WebTest/Contribute/StandaloneAddTest.php
tests/phpunit/WebTest/Member/StandaloneAddTest.php

index 0e692eac94c4e2de62064e627ae41aaf4981061f..fdf129dd8372b17348198ac51e1518a4a5fe3225 100644 (file)
@@ -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
index 4ebcf4e79021ae286aa4cdae6111221d2113d39a..8123794d5e08dbeafb0998e994c1210782755f11 100644 (file)
@@ -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