CRM-12378 a new webtest helper function introduction which can help detect break...
[civicrm-core.git] / tests / phpunit / WebTest / Activity / StandaloneAddTest.php
index de875dd7bd11b61d45d48166b8ab3b79a3e83172..5d4b87e4d29756e238a0cca0291ea917fa60a737 100644 (file)
@@ -162,5 +162,16 @@ class WebTest_Activity_StandaloneAddTest extends CiviSeleniumTestCase {
       )
     );
   }
-}
 
+  function testAjaxCustomGroupLoad() {
+    $this->webtestLogin();
+    $triggerElement = array('name' => 'activity_type_id', 'type' => 'select');
+    $customSets = array(
+      array('entity' => 'Activity', 'subEntity' => 'Interview', 'triggerElement' => $triggerElement),
+      array('entity' => 'Activity', 'subEntity' => 'Meeting', 'triggerElement' => $triggerElement)
+    );
+
+    $pageUrl = array('url' => 'activity', 'args' => 'reset=1&action=add&context=standalone');
+    $this->customFieldSetLoadOnTheFlyCheck($customSets, $pageUrl);
+  }
+}
\ No newline at end of file