$this->open($registerUrl);
$this->waitForElementPresent('_qf_Register_upload-bottom');
- $firstName = substr(sha1(rand()), 0, 7);
- $this->type('email-Primary', "$firstName@Anderson.com");
+ $firstName = 'Jane' .substr(sha1(rand()), 0, 7);
+ $lastName = 'Doe' . substr(sha1(rand()), 0, 7);
+ $this->type('first_name', "$firstName");
+ $this->type('last_name', "$lastName");
+ $this->type('email-Primary', "$firstName@$lastName.com");
$this->click('_qf_Register_upload-bottom');
$this->waitForPageToLoad($this->getTimeoutMsec());
$this->click("css=div.crm-event-thankyou-form-block div#tell-a-friend a");
$this->waitForElementPresent('_qf_Activity_cancel-bottom');
$this->verifyText("xpath=//table[@class='crm-info-panel']/tbody/tr[1]/td[2]",
- preg_quote("$firstName@Anderson.com")
+ preg_quote("$lastName, $firstName")
);
$this->verifyText("xpath=//table[@class='crm-info-panel']/tbody/tr[2]/td[2]/a[1]",