+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2014 |
+ | Copyright CiviCRM LLC (c) 2004-2015 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
require_once 'CiviTest/CiviSeleniumTestCase.php';
'Country' => array(
'type' => 'select',
'locator' => 'country',
- 'values' => array('United States'),
+ 'values' => array('UNITED STATES'),
),
'State' => array(
'type' => 'multiselect2',
'title' => 'Activities',
'fields' => array(
'Activity Type' => array(
- 'type' => 'checkbox',
- 'values' => array(
- 'activity_type_id[6]',
- 'activity_type_id[3]',
- 'activity_type_id[5]',
- 'activity_type_id[7]',
- ),
+ 'type' => 'multiselect2',
+ 'locator' => 'activity_type_id',
+ 'values' => array(array('Contribution', 'Email', 'Event Registration', 'Membership Signup')),
),
'Activity Subject' => array(
'type' => 'text',
'values' => array('Test Subject'),
),
'Activity Status' => array(
- 'type' => 'checkbox',
- 'values' => array('activity_status[1]', 'activity_status[2]'),
+ 'type' => 'multiselect2',
+ 'locator' => 'status_id',
+ 'values' => array(array('Scheduled', 'Completed')),
),
),
),
),
'demographics' => array(
'headerLocator' => 'div#demographics',
- 'bodyLocator' => 'input#birth_date_low_display',
+ 'bodyLocator' => 'input#birth_date_low',
'title' => 'Demographics',
'fields' => array(
'Birth Date Range' => array(
'values' => array('Donation'),
),
'Contribution Status' => array(
- 'type' => 'checkbox',
- 'values' => array('contribution_status_id[1]', 'contribution_status_id[2]'),
+ 'type' => 'multiselect2',
+ 'locator' => 'contribution_status_id',
+ 'values' => array(array('Completed', 'Pending')),
),
),
),
'title' => 'Memberships',
'fields' => array(
'Membership Type' => array(
- 'type' => 'checkbox',
- 'values' => array('member_membership_type_id[1]', 'member_membership_type_id[2]'),
+ 'type' => 'multiselect2',
+ 'locator' => 'membership_type_id',
+ 'values' => array(array('General', 'Student')),
),
'Membership Status' => array(
- 'type' => 'checkbox',
- 'values' => array('member_status_id[1]', 'member_status_id[2]'),
+ 'type' => 'multiselect2',
+ 'locator' => 'membership_status_id',
+ 'values' => array(array('New', 'Current')),
),
),
),
'title' => 'Events',
'fields' => array(
'Participant Status' => array(
- 'type' => 'checkbox',
- 'values' => array('participant_status_id[1]', 'participant_status_id[2]'),
+ 'type' => 'multiselect2',
+ 'locator' => 'participant_status_id',
+ 'values' => array(array('Registered', 'Attended')),
),
'Participant Role' => array(
- 'type' => 'checkbox',
- 'values' => array('participant_role_id[1]', 'participant_role_id[2]'),
+ 'type' => 'multiselect2',
+ 'locator' => 'participant_role_id',
+ 'values' => array(array('Attendee', 'Volunteer')),
),
),
),
return $_advance_search_panes;
}
+
}