Add check for send_receipt checkbox to WebTest_Event_AddParticipationTest::testEventP...
authorDave Greenberg <dave@civicrm.org>
Wed, 30 Jul 2014 21:40:39 +0000 (14:40 -0700)
committerDave Greenberg <dave@civicrm.org>
Wed, 30 Jul 2014 21:40:39 +0000 (14:40 -0700)
tests/phpunit/WebTest/Event/AddParticipationTest.php

index 00590e6d8d8acb66a027098899b0c9e4a5783096..cd96cce90e0573a07594a6a41810f79cc3e113d5 100644 (file)
@@ -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());