From 5dc17bfe7af22fd03a07177f12fb335098136c62 Mon Sep 17 00:00:00 2001 From: Dave Greenberg Date: Wed, 30 Jul 2014 14:40:39 -0700 Subject: [PATCH] Add check for send_receipt checkbox to WebTest_Event_AddParticipationTest::testEventParticipationAdd. --- tests/phpunit/WebTest/Event/AddParticipationTest.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/phpunit/WebTest/Event/AddParticipationTest.php b/tests/phpunit/WebTest/Event/AddParticipationTest.php index 00590e6d8d..cd96cce90e 100644 --- a/tests/phpunit/WebTest/Event/AddParticipationTest.php +++ b/tests/phpunit/WebTest/Event/AddParticipationTest.php @@ -87,7 +87,10 @@ class WebTest_Event_AddParticipationTest extends CiviSeleniumTestCase { // go for the chicken combo (obviously) // $this->click('CIVICRM_QFID_chicken_Chicken'); - + + $this->waitForElementPresent('send_receipt'); + $this->assertTrue($this->isChecked("send_receipt"), 'Send Confirmation and Receipt checkbox should be checked by default but is not checked.'); + // Clicking save. $this->click('_qf_Participant_upload-bottom'); $this->waitForPageToLoad($this->getTimeoutMsec()); -- 2.25.1