Merge pull request #71 from dpradeep/merge-20140930
[civicrm-core.git] / tests / phpunit / WebTest / Contact / AddContactsToEventAdvancedSearchTest.php
index e2e26f4dabb04fb292c5397313be023f738a61bc..e60eb952b3dbec6608f40c9272ae5dd32833a8ce 100644 (file)
 */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
+
+/**
+ * Class WebTest_Contact_AddContactsToEventAdvancedSearchTest
+ */
 class WebTest_Contact_AddContactsToEventAdvancedSearchTest extends CiviSeleniumTestCase {
 
   protected function setUp() {
@@ -43,14 +47,14 @@ class WebTest_Contact_AddContactsToEventAdvancedSearchTest extends CiviSeleniumT
     $this->click('CIVICRM_QFID_ts_all_8');
 
     $this->select('task', "label=Add Contacts to Event");
-    $this->click('Go');
+
 
     // Select event. Based on label for now.
     $this->waitForElementPresent('event_id');
-    $this->select('event_id', "label=regexp:Rain-forest Cup Youth Soccer Tournament.");
+    $this->select2('event_id', "Rain-forest Cup Youth Soccer Tournament");
 
     // Select role
-    $this->click('role_id[2]');
+    $this->multiselect2('role_id', array('Volunteer'));
 
     // Select participant status
     $this->select('status_id', 'value=1');