+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2014 |
+ | Copyright CiviCRM LLC (c) 2004-2015 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
$name = $firstName . " " . $lastName;
$status = 'Registered';
- $this->verifyText("xpath=//form[@id='ParticipantView']/div[2]/table/tbody/tr[1]/td[2]/a", preg_quote($name));
- $this->verifyText("xpath=//form[@id='ParticipantView']/div[2]/table/tbody/tr[3]/td[2]/a", preg_quote($eventTitle));
+ $this->verifyText("xpath=//form[@id='ParticipantView']/div[2]/table[1]/tbody/tr[1]/td[2]/strong/a", preg_quote($name));
+ $this->verifyText("xpath=//form[@id='ParticipantView']/div[2]/table[1]/tbody/tr[3]/td[2]/a", preg_quote($eventTitle));
$this->verifyText("xpath=//form[@id='ParticipantView']/div[2]/table/tbody/tr[6]/td[2]", preg_quote($status));
// Find additional Participant
$name = $participantfname . " " . $participantlname;
$status = 'Registered';
- $this->verifyText("xpath=//form[@id='ParticipantView']/div[2]/table/tbody/tr[1]/td[2]/a", preg_quote($name));
- $this->verifyText("xpath=//form[@id='ParticipantView']/div[2]/table/tbody/tr[3]/td[2]/a", preg_quote($eventTitle));
- $this->verifyText("xpath=//form[@id='ParticipantView']/div[2]/table/tbody/tr[6]/td[2]", preg_quote($status));
+ $this->verifyText("xpath=//form[@id='ParticipantView']/div[2]/table[1]/tbody/tr[1]/td[2]/strong/a", preg_quote($name));
+ $this->verifyText("xpath=//form[@id='ParticipantView']/div[2]/table[1]/tbody/tr[3]/td[2]/a", preg_quote($eventTitle));
+ $this->verifyText("xpath=//form[@id='ParticipantView']/div[2]/table[1]/tbody/tr[6]/td[2]", preg_quote($status));
// delete all custom data
if (isset($cfId)) {
$name = $firstName . " " . $lastName;
$status = 'Registered';
- $this->verifyText("xpath=//form[@id='ParticipantView']/div[2]/table/tbody/tr[1]/td[2]/a", preg_quote($name));
+ $this->verifyText("xpath=//form[@id='ParticipantView']/div[2]/table/tbody/tr[1]/td[2]/strong/a", preg_quote($name));
$this->verifyText("xpath=//form[@id='ParticipantView']/div[2]/table/tbody/tr[3]/td[2]/a", preg_quote($eventTitle));
$this->verifyText("xpath=//form[@id='ParticipantView']/div[2]/table/tbody/tr[6]/td[2]", preg_quote($status));
$name = $participantfname . " " . $participantlname;
$status = 'Registered';
- $this->verifyText("xpath=//form[@id='ParticipantView']/div[2]/table/tbody/tr[1]/td[2]/a", preg_quote($name));
+ $this->verifyText("xpath=//form[@id='ParticipantView']/div[2]/table/tbody/tr[1]/td[2]/strong/a", preg_quote($name));
$this->verifyText("xpath=//form[@id='ParticipantView']/div[2]/table/tbody/tr[3]/td[2]/a", preg_quote($eventTitle));
$this->verifyText("xpath=//form[@id='ParticipantView']/div[2]/table/tbody/tr[6]/td[2]", preg_quote($status));
$name = $firstName2 . " " . $lastName2;
$status = 'Registered';
- $this->verifyText("xpath=//form[@id='ParticipantView']/div[2]/table/tbody/tr[1]/td[2]/a", preg_quote($name));
+ $this->verifyText("xpath=//form[@id='ParticipantView']/div[2]/table/tbody/tr[1]/td[2]/strong/a", preg_quote($name));
$this->verifyText("xpath=//form[@id='ParticipantView']/div[2]/table/tbody/tr[3]/td[2]/a", preg_quote($eventTitle));
$this->verifyText("xpath=//form[@id='ParticipantView']/div[2]/table/tbody/tr[6]/td[2]", preg_quote($status));
$name = $participantfname2 . " " . $participantlname2;
$status = 'Registered';
- $this->verifyText("xpath=//form[@id='ParticipantView']/div[2]/table/tbody/tr[1]/td[2]/a", preg_quote($name));
+ $this->verifyText("xpath=//form[@id='ParticipantView']/div[2]/table/tbody/tr[1]/td[2]/strong/a", preg_quote($name));
$this->verifyText("xpath=//form[@id='ParticipantView']/div[2]/table/tbody/tr[3]/td[2]/a", preg_quote($eventTitle));
$this->verifyText("xpath=//form[@id='ParticipantView']/div[2]/table/tbody/tr[6]/td[2]", preg_quote($status));
}
/**
- * @param $customGrpId1
+ * Get custom field ID.
+ *
+ * @param int $customGrpId1
*
* @return array
*/
/**
* Test profile creation.
*
-*@param $profileField
+ * @param array $profileField
* @param int $location
* @param $type
*
* @param $email1
* @param $email2
*/
- function _testEventRegistration(
+ public function _testEventRegistration(
$eventPageId, $customId, $firstName, $lastName,
$participantfname, $participantlname, $email1, $email2
) {
$this->type("email-Primary", $email1);
$this->type("first_name", $firstName);
$this->type("last_name", $lastName);
- $this->type("street_address-1", "Test street addres");
+ $this->type("street_address-1", "Test street address");
$this->type("city-1", "Mumbai");
$this->type("postal_code-1", "2354");
$this->select("state_province-1", "value=1001");
$this->type("email-Primary", $email2);
$this->type("first_name", $participantfname);
$this->type("last_name", $participantlname);
- $this->type("street_address-1", "participant street addres");
+ $this->type("street_address-1", "participant street address");
$this->type("city-1", "pune");
$this->type("postal_code-1", "2354");
$this->select("state_province-1", "value=1001");
$this->type("email-Primary", $email4);
$this->type("first_name", $firstName2);
$this->type("last_name", $lastName2);
- $this->type("street_address-1", "Test street addres");
+ $this->type("street_address-1", "Test street address");
$this->type("city-1", "Mumbai");
$this->type("postal_code-1", "2354");
$this->select("state_province-1", "value=1001");
$this->type("email-Primary", $email3);
$this->type("first_name", $participantfname2);
$this->type("last_name", $participantlname2);
- $this->type("street_address-1", "participant street addres");
+ $this->type("street_address-1", "participant street address");
$this->type("city-1", "pune");
$this->type("postal_code-1", "2354");
$this->select("state_province-1", "value=1001");
$this->click("_qf_Field_next-bottom");
$this->waitForPageToLoad($this->getTimeoutMsec());
}
+
}