From 16a9c6d8a45278e8bd214aa99fb790af832a97c0 Mon Sep 17 00:00:00 2001 From: Rohan Katkar Date: Thu, 31 Jul 2014 14:30:18 +0530 Subject: [PATCH] CRM-15037 Added assertion for standalone contribution and membership webtests. --- tests/phpunit/WebTest/Contribute/StandaloneAddTest.php | 2 +- tests/phpunit/WebTest/Member/StandaloneAddTest.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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 -- 2.25.1