$this->select('period_type', 'value=rolling');
- $this->removeSelection('relationship_type_id', 'label=- select -');
- $this->addSelection('relationship_type_id', 'label=Employer of');
-
+ $this->select2('relationship_type_id', 'Employer of', TRUE);
$this->type('max_related', '5');
$this->click('_qf_MembershipType_upload-bottom');
$this->select('period_type', 'value=rolling');
- $this->removeSelection('relationship_type_id', 'label=- select -');
$this->addSelection('relationship_type_id', 'label=Employer of');
$this->type('max_related', '5');
// click through to the activity view screen
$this->click('css=li#tab_activity a');
- $this->waitForElementPresent("xpath=//table[@class='contact-activity-selector-activity dataTable no-footer']/tbody//tr/td[8]/span/a[text()='View']");
+ $this->waitForElementPresent("xpath=//table[@class='contact-activity-selector-activity crm-ajax-table dataTable no-footer']/tbody//tr/td[8]/span/a[text()='View']");
// check number of activity for contact
$this->assertEquals(1, $this->getText("xpath=//li[@id='tab_activity']/a/em"));
- $url = $this->parseURL($this->getAttribute("xpath=//table[@class='contact-activity-selector-activity dataTable no-footer']/tbody//tr/td[8]/span/a[text()='View']@href"));
+ $url = $this->parseURL($this->getAttribute("xpath=//table[@class='contact-activity-selector-activity crm-ajax-table dataTable no-footer']/tbody//tr/td[8]/span/a[text()='View']@href"));
$expectedMembershipActivityId = $url['queryString']['id'];
// verify membership id with membership activity id
$this->waitForElementPresent("xpath=//table[@class='display dataTable no-footer']/tbody/tr/td[9]/span/a[contains(text(), 'View')]");
// click through to the membership view screen
-
+ $this->waitForAjaxContent();
$this->click("xpath=//table[@class='display dataTable no-footer']/tbody/tr/td[9]/span/a[contains(text(), 'View')]");
$this->waitForElementPresent("xpath=//button//span[contains(text(),'Done')]");
$i = 2;
foreach ($options as $index => $values) {
$this->select("membership_type_id_{$index}", "value={$values['membership_type_id']}");
-
+ $this->waitForAjaxContent();
$this->waitForElementPresent("xpath=//table[@id='optionField']/tbody/tr[$i]/td[4]/input");
$this->type("xpath=//table[@id='optionField']/tbody/tr[$i]/td[4]/input", $values['membership_num_terms']);
$this->type("xpath=//table[@id='optionField']/tbody/tr[$i]/td[5]/input", $values['label']);
$this->type('duration_interval', 1);
$this->select('duration_unit', 'label=year');
$this->select('period_type', 'value=rolling');
-
- $this->removeSelection('relationship_type_id', 'label=- select -');
- $this->addSelection('relationship_type_id', 'label=Employer of');
+ $this->select2('relationship_type_id', 'Employer of', TRUE);
$this->click('_qf_MembershipType_upload-bottom');
$this->waitForElementPresent('link=Add Membership Type');