$this->click('is_uf_link');
//click on save
- $this->click('_qf_Group_next');
- $this->waitForPageToLoad($this->getTimeoutMsec());
+ $this->clickLink('_qf_Group_next');
+
+ $gid = $this->urlArg('gid');
- //check for profile create
- $this->waitForText('crm-notification-container', "Your CiviCRM Profile '{$profileTitle}' has been added. You can add fields to this profile now.");
//Add field to profile
- $this->waitForElementPresent("xpath=//a/span[text()='Add Field']");
$this->click("xpath=//a/span[text()='Add Field']");
$this->waitForElementPresent("field_name[0]");
$this->click('field_name[0]');
//click on save
$this->click('_qf_Field_next');
- $this->waitForElementPresent("xpath=//a/span[text()='Add Field']");
+ sleep(1);
// delete the profile
$this->openCiviPage('admin/uf/group', 'reset=1');
'last_name' => 'Individual',
'email' => 'Contact'
);
- $this->waitForElementPresent("xpath=//a/span[text()='Add Field']");
- $this->click("xpath=//a/span[text()='Add Field']");
$this->waitForElementPresent("field_name_0");
foreach ($fields as $field => $type) {
$this->click('field_name_0');
// Wait for "saved" status msg
$this->waitForText('crm-notification-container', 'Profile Saved');
- $this->clickLink("xpath=//div[@id='breadcrumb']/div//a[text()='Profiles']");
+ $this->openCiviPage("admin/uf/group", "reset=1");
$this->waitForElementPresent("xpath=//div[@class='crm-submit-buttons']/a[@id='newCiviCRMProfile-bottom']");
$this->waitForElementPresent("xpath=//div[@id='user-profiles']/div/div/table/tbody/tr[@id='UFGroup-$id']/td[2]/a");
$this->waitForElementPresent("xpath=//div[@id='user-profiles']/div/div/table/tbody/tr[@id='UFGroup-$id']/td[3]");