CRM-16876 Change country name to uppercase
[civicrm-core.git] / tests / phpunit / WebTest / Contact / AdvanceSearchPaneTest.php
index 6d870b741430328ed22716ca28900dd962791b01..f85b3d83a19ac78f1c96423c105e40298f37abf8 100644 (file)
@@ -3,7 +3,7 @@
  +--------------------------------------------------------------------+
  | CiviCRM version 4.6                                                |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2014                                |
+ | Copyright CiviCRM LLC (c) 2004-2015                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
@@ -22,7 +22,7 @@
  | 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';
 
@@ -186,7 +186,7 @@ class WebTest_Contact_AdvanceSearchPaneTest extends CiviSeleniumTestCase {
             'Country' => array(
               'type' => 'select',
               'locator' => 'country',
-              'values' => array('United States'),
+              'values' => array('UNITED STATES'),
             ),
             'State' => array(
               'type' => 'multiselect2',
@@ -215,13 +215,9 @@ class WebTest_Contact_AdvanceSearchPaneTest extends CiviSeleniumTestCase {
           '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',
@@ -229,8 +225,9 @@ class WebTest_Contact_AdvanceSearchPaneTest extends CiviSeleniumTestCase {
               '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')),
             ),
           ),
         ),
@@ -253,7 +250,7 @@ class WebTest_Contact_AdvanceSearchPaneTest extends CiviSeleniumTestCase {
         ),
         'demographics' => array(
           'headerLocator' => 'div#demographics',
-          'bodyLocator' => 'input#birth_date_low_display',
+          'bodyLocator' => 'input#birth_date_low',
           'title' => 'Demographics',
           'fields' => array(
             'Birth Date Range' => array(
@@ -318,8 +315,9 @@ class WebTest_Contact_AdvanceSearchPaneTest extends CiviSeleniumTestCase {
               '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')),
             ),
           ),
         ),
@@ -329,12 +327,14 @@ class WebTest_Contact_AdvanceSearchPaneTest extends CiviSeleniumTestCase {
           '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')),
             ),
           ),
         ),
@@ -344,12 +344,14 @@ class WebTest_Contact_AdvanceSearchPaneTest extends CiviSeleniumTestCase {
           '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')),
             ),
           ),
         ),
@@ -362,4 +364,5 @@ class WebTest_Contact_AdvanceSearchPaneTest extends CiviSeleniumTestCase {
 
     return $_advance_search_panes;
   }
+
 }