$this->click("xpath=//span[@class='ui-button-icon-primary ui-icon ui-icon-closethick']");
$this->waitForElementPresent("xpath=//div[@id='activities']//table[@id='case_id_" . $id . "']/tbody/tr[1]/td[2]");
- $this->click("xpath=//div[@id='activities']//table[@id='case_id_" . $id . "']/tbody//tr/td[2]/a[text()='{$subject}']/../../td[6]/a[text()='Scheduled']");
+ $this->click("xpath=//div[@id='activities']//table[@id='case_id_" . $id . "']/tbody//tr/td[2]/a[text()='{$subject}']/../../td[6]/div[text()='Scheduled']");
- $this->waitForElementPresent("xpath=//html/body/div[7]");
- $this->waitForElementPresent('activity_change_status');
+ $this->waitForElementPresent("xpath=//div[@id='activities']//table[@id='case_id_" . $id . "']/tbody//tr/td[2]/a[text()='{$subject}']/../../td[6]/div/form/select");
// change activity status
- $this->select('activity_change_status', 'value=2');
- $this->click("xpath=//div[@class='ui-dialog-buttonset']/button[1]/span[2]");
+ $this->select("xpath=//div[@id='activities']//table[@id='case_id_" . $id . "']/tbody//tr/td[2]/a[text()='{$subject}']/../../td[6]/div/form/select", 'value=2');
+ $this->click("xpath=//div[@id='activities']//table[@id='case_id_" . $id . "']/tbody//tr/td[2]/a[text()='{$subject}']/../../td[6]/div/form/button[@type='submit']");
$this->openCiviPage('case', 'reset=1');
$this->click("xpath=//table[@class='caseSelector']/tbody//tr/td[2]/a[text()='{$contactName}']/../../td[9]/span/a[text()='Manage']");
$this->waitForElementPresent('_qf_CaseView_cancel-bottom');
'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' => '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')),
),
),
),
// check for completed
$this->multiselect2("contribution_status_id", array('Completed'));
// enter check number
- $this->select2("payment_instrument_id", "Check");
+ $this->select("payment_instrument_id", "Check");
$this->type("contribution_check_number", "chqNo$firstName");
// fill transaction id
$this->type("contribution_trxn_id", "trid$firstName");
$this->select2("event_id", "Fall Fundraiser Dinner");
// fill event type
$this->select2("event_type_id", "Fundraiser");
- // check participant status (registered)
- $this->click("xpath=//div[@id='participantForm']/table/tbody//tr/td/label[text()='Participant Status']/../div//div/label[text()='Registered']");
- // check participant role (Volunteer)
- $this->click("xpath=//div[@id='participantForm']/table/tbody//tr/td/label[text()='Participant Role']/../div//div/label[text()='Volunteer']");
+ // select participant status (registered)
+ $this->multiselect2('participant_status_id', array('Registered'));
+ // select participant role (Volunteer)
+ $this->multiselect2('participant_role_id', array('Volunteer'));
// fill participant fee level (couple)
$this->select2("participant_fee_id", "Couple");
// fill amount range
elseif (!$defaultPriceSet) {
$memTypeParams1 = $this->webtestAddMembershipType();
$memTypeTitle1 = $memTypeParams1['membership_type'];
- $memTypeId1 = explode('&id=', $this->getAttribute("xpath=//div[@id='membership_type']/table/tbody//tr/td[text()='{$memTypeTitle1}']/../td[12]/span/a[3]@href"));
+ $memTypeId1 = explode('&id=', $this->getAttribute("xpath=//div[@id='membership_type']/table/tbody//tr/td/div[text()='{$memTypeTitle1}']/../../td[12]/span/a[3]@href"));
$memTypeId1 = $memTypeId1[1];
$memTypeParams2 = $this->webtestAddMembershipType();
$memTypeTitle2 = $memTypeParams2['membership_type'];
- $memTypeId2 = explode('&id=', $this->getAttribute("xpath=//div[@id='membership_type']/table/tbody//tr/td[text()='{$memTypeTitle2}']/../td[12]/span/a[3]@href"));
+ $memTypeId2 = explode('&id=', $this->getAttribute("xpath=//div[@id='membership_type']/table/tbody//tr/td/div[text()='{$memTypeTitle2}']/../../td[12]/span/a[3]@href"));
$memTypeId2 = $memTypeId2[1];
$memTypeParams3 = $this->webtestAddMembershipType();
$memTypeTitle3 = $memTypeParams3['membership_type'];
- $memTypeId3 = explode('&id=', $this->getAttribute("xpath=//div[@id='membership_type']/table/tbody//tr/td[text()='{$memTypeTitle3}']/../td[12]/span/a[3]@href"));
+ $memTypeId3 = explode('&id=', $this->getAttribute("xpath=//div[@id='membership_type']/table/tbody//tr/td/div[text()='{$memTypeTitle3}']/../../td[12]/span/a[3]@href"));
$memTypeId3 = $memTypeId3[1];
}