$this->verifyText("xpath=//table/tbody/tr/td[text()='Fees']/following-sibling::td/table/tbody/tr[2]/td", preg_quote('$ 2,705.00'));
$expectedLineItems = array(
2 => array(
- 1 => 'Full Conference',
+ 1 => 'Full Conference ',
2 => '5',
3 => '$ 525.00',
4 => '$ 2,625.00',
4 => '$ 50.00',
),
4 => array(
- 1 => 'Evening Sessions - First Night',
+ 1 => 'Evening Sessions - First Night ',
2 => '1',
3 => '$ 15.00',
4 => '$ 15.00',
),
5 => array(
- 1 => 'Evening Sessions - Second Night',
+ 1 => 'Evening Sessions - Second Night ',
2 => '1',
3 => '$ 15.00',
4 => '$ 15.00',
$this->select("field_name_2", "value=2");
// click on Save buttonProfile Field Saved
- $this->clickLink('_qf_Field_next-bottom', "xpath=//a/span[text()=' Add Field']", FALSE);
+ $this->clickLink("xpath=//button/span[text()='Save']", "xpath=//a/span/i[@class='crm-i fa-plus-circle']", FALSE);
// Wait for "saved" status msg
$this->waitForText('crm-notification-container', "Profile Field Saved");
$id = $id[1];
// click on Edit Settings
- $this->clickLink("xpath=//a/span[text()=' Edit Settings']", '_qf_Group_next-bottom', FALSE);
+ $this->clickLink("xpath=//a/span/i[@class='crm-i fa-wrench']", '_qf_Group_next-bottom', FALSE);
// check for description field
$this->waitForElementPresent('description');
$this->assertEquals($this->getValue('description'), $profileDescription);
// click on save button
- $this->clickLink('_qf_Group_next-bottom', "xpath=//a/span[text()=' Edit Settings']", FALSE);
+ $this->clickLink('_qf_Group_next-bottom', "xpath=//a/span/i[@class='crm-i fa-wrench']", FALSE);
// Wait for "saved" status msg
$this->waitForText('crm-notification-container', 'Profile Saved');
$this->openCiviPage('report/instance/1', 'reset=1');
//check if the report criteria and settings is accessible
- $this->assertTrue($this->isElementPresent("xpath=//div[@id='report-tab-col-groups']/table/tbody//tr/td[3]/input[@id='fields_email']"));
+ $this->assertTrue($this->isElementPresent("xpath=//div[@id='report-tab-col-groups']/table/tbody//tr/td[1]/input[@id='fields_email']"));
$this->assertTrue($this->isElementPresent("xpath=//div[@id='report-tab-format']/table/tbody//tr/td[2]/input[@id='title']"));
//login as admin and remove reserved permission
$this->webtestLogin($user, 'Test12345');
$this->openCiviPage('report/instance/1', 'reset=1');
- $this->assertTrue($this->isElementPresent("xpath=//div[@id='report-tab-col-groups']/table/tbody//tr/td[3]/input[@id='fields_email']"));
+ $this->assertTrue($this->isElementPresent("xpath=//div[@id='report-tab-col-groups']/table/tbody//tr/td[1]/input[@id='fields_email']"));
$this->assertTrue($this->isElementPresent("xpath=//div[@id='report-tab-format']/table/tbody//tr/td[2]/input[@id='title']"));
//login as admin and delete the role