CRM-12378 a new webtest helper function introduction which can help detect break...
[civicrm-core.git] / tests / phpunit / WebTest / Grant / CustomFieldsetTest.php
index fbb602d29ab2a49990b7ed5779e7d4b2d001df07..65390ffece3106c4596662d80b1ddeb5ec3f88c1 100644 (file)
@@ -109,5 +109,20 @@ class WebTest_Grant_CustomFieldsetTest extends CiviSeleniumTestCase {
      )
     );
   }
-}
 
+  function testAjaxCustomGroupLoad() {
+    $this->webtestLogin();
+
+    // Enable CiviGrant module if necessary
+    $this->enableComponents("CiviGrant");
+
+    $triggerElement = array('name' => 'grant_type_id', 'type' => 'select');
+    $customSets = array(
+      array('entity' => 'Grant', 'subEntity' => 'Emergency', 'triggerElement' => $triggerElement),
+      array('entity' => 'Grant', 'subEntity' => 'Family Support', 'triggerElement' => $triggerElement)
+    );
+
+    $pageUrl = array('url' => 'grant/add', 'args' => 'reset=1&action=add&context=standalone');
+    $this->customFieldSetLoadOnTheFlyCheck($customSets, $pageUrl);
+  }
+}
\ No newline at end of file