+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
//CRM-7564 : Different gropus can contain same custom fields
$this->open($this->sboxPath . "civicrm/admin/custom/group?action=add&reset=1");
$this->waitForPageToLoad($this->getTimeoutMsec());
//CRM-7564 : Different gropus can contain same custom fields
$this->open($this->sboxPath . "civicrm/admin/custom/group?action=add&reset=1");
$this->waitForPageToLoad($this->getTimeoutMsec());
$this->click("extends[0]");
$this->select("extends[0]", "label=Contacts");
$this->click("//option[@value='Contact']");
$this->click("extends[0]");
$this->select("extends[0]", "label=Contacts");
$this->click("//option[@value='Contact']");
- $this->assertTrue($this->isTextPresent("Your custom field set '$customGroupTitle' has been added. You can add custom fields now."));
+ $this->waitForText('crm-notification-container', "Your custom field set '$customGroupTitle' has been added. You can add custom fields now.");
+
+ $gid = $this->urlArg('gid');
+
$textFieldLabel = 'test_text_field';
$this->click("header");
$this->type("label", $textFieldLabel);
$textFieldLabel = 'test_text_field';
$this->click("header");
$this->type("label", $textFieldLabel);
//add custom field - alphanumeric text
$textFieldLabel = 'test_text_field';
$this->click("header");
$this->type("label", $textFieldLabel);
//add custom field - alphanumeric text
$textFieldLabel = 'test_text_field';
$this->click("header");
$this->type("label", $textFieldLabel);
$this->click("data_type[0]");
$this->select("data_type[0]", "value=0");
$this->click("//option[@value='0']");
$this->click("data_type[0]");
$this->select("data_type[0]", "value=0");
$this->click("//option[@value='0']");
$this->select("data_type[1]", "label=CheckBox");
$this->click("//option[@value='CheckBox']");
//Is custom field created
$this->select("data_type[1]", "label=CheckBox");
$this->click("//option[@value='CheckBox']");
//Is custom field created