CRM-12378 a new webtest helper function introduction which can help detect break...
[civicrm-core.git] / tests / phpunit / WebTest / Event / AddParticipationTest.php
index 792de9a2d77a80985118bb15817571511c98366b..a5cda779ffc5c0e0457815eb30205f9b56abd029 100644 (file)
@@ -372,6 +372,18 @@ class WebTest_Event_AddParticipationTest extends CiviSeleniumTestCase {
 }
   }
 
+  function testAjaxCustomGroupLoad() {
+    $this->webtestLogin();
+
+    $customSets = array(
+      array('entity' => 'ParticipantEventName', 'subEntity' => 'Fall Fundraiser Dinner',
+        'triggerElement' => array('name' => "event_id", 'type' => "select")),
+      array('entity' => 'ParticipantRole', 'subEntity' => 'Attendee','triggerElement' => array('type' => "checkbox"))
+    );
+    $pageUrl = array('url' => "participant/add", 'args' => "reset=1&action=add&context=standalone");
+    $this->customFieldSetLoadOnTheFlyCheck($customSets, $pageUrl);
+  }
+
   function _fillParticipantDetails($firstName, $lastName, $processorId) {
     $this->select("id=profiles_1", "label=New Individual");
     $this->waitForElementPresent('_qf_Edit_next');
@@ -385,5 +397,4 @@ class WebTest_Event_AddParticipationTest extends CiviSeleniumTestCase {
     $this->webtestAddCreditCardDetails();
     $this->webtestAddBillingDetails();
   }
-}
-
+}
\ No newline at end of file