function testIndividualAdd() {
$this->webtestLogin();
- $this->WebtestAddGroup();
+ $groupName = $this->WebtestAddGroup();
// go to display preferences to enable Open ID field
$this->openCiviPage('admin/setting/preferences/display', "reset=1", "_qf_Display_next-bottom");
$this->select("address_1_country_id", "value=" . $this->webtestGetValidCountryID());
if ($this->assertElementContainsText('address_1', "Latitude")) {
-
$this->type("address_1_geo_code_1", "1234");
$this->type("address_1_geo_code_2", "5678");
}
//Tags and Groups section
$this->click("tagGroup");
- $this->click("group[{$this->webtestGetValidEntityID('Group')}]");
+ // select group
+ $this->select("crmasmSelect0", "label=$groupName");
$this->click("tag[{$this->webtestGetValidEntityID('Tag')}]");
// Clicking save.
function testHouseholdAdd() {
$this->webtestLogin();
+ $groupName = $this->WebtestAddGroup();
+
// go to display preferences to enable Open ID field
$this->openCiviPage('admin/setting/preferences/display', "reset=1", "_qf_Display_next-bottom");
$this->check("xpath=//ul[@id='contactEditBlocks']//li/span[2]/label[text()='Open ID']/../input");
$this->type("subject", "Grant's note");
$this->type("note", "This is a household contact webtest note.");
- //Tags and Groups section
- $this->click("group[{$this->webtestGetValidEntityID('Group')}]");
+ // select group
+ $this->select("crmasmSelect0", "label=$groupName");
+
+ //tags section
$this->click("tag[{$this->webtestGetValidEntityID('Tag')}]");
// Clicking save.
function testOrganizationAdd() {
$this->webtestLogin();
+ $groupName = $this->WebtestAddGroup();
+
// go to display preferences to enable Open ID field
$this->openCiviPage('admin/setting/preferences/display', "reset=1", "_qf_Display_next-bottom");
$this->check("xpath=//ul[@id='contactEditBlocks']//li/span[2]/label[text()='Open ID']/../input");
//Tags and Groups section
$this->click("tagGroup");
- $this->click("group[{$this->webtestGetValidEntityID('Group')}]");
+
+ // select group
+ $this->select("crmasmSelect0", "label=$groupName");
+
$this->click("tag[{$this->webtestGetValidEntityID('Tag')}]");
// Clicking save.