Skip to content
Snippets Groups Projects
Commit 1eb0391e authored by Kurund Jalmi's avatar Kurund Jalmi
Browse files

fixes for WebTest_Event_ParticipantCountTest

parent d17310e4
No related branches found
No related tags found
No related merge requests found
......@@ -32,7 +32,6 @@ class WebTest_Event_ParticipantCountTest extends CiviSeleniumTestCase {
}
function testParticipantCountWithFeelevel() {
// Log in using webtestLogin() method
$this->webtestLogin();
......@@ -69,6 +68,8 @@ class WebTest_Event_ParticipantCountTest extends CiviSeleniumTestCase {
$this->click("xpath=//input[@class='form-radio']");
$email = 'jane_' . substr(sha1(rand()), 0, 5) . '@example.org';
$this->type('first_name', 'Mary');
$this->type('last_name', 'Jones'. substr(sha1(rand()), 0, 5));
$this->type('email-Primary', $email);
// fill billing details and register
......@@ -84,6 +85,8 @@ class WebTest_Event_ParticipantCountTest extends CiviSeleniumTestCase {
$this->click("xpath=//input[@class='form-radio']");
$email = 'jane_' . substr(sha1(rand()), 0, 5) . '@example.org';
$this->type('first_name', 'Mary');
$this->type('last_name', 'Jones'. substr(sha1(rand()), 0, 5));
$this->type('email-Primary', $email);
// fill billing details and register
......@@ -217,14 +220,16 @@ class WebTest_Event_ParticipantCountTest extends CiviSeleniumTestCase {
$this->type("xpath=//input[@class='form-text four required']", '1');
$email = 'jane_' . substr(sha1(rand()), 0, 5) . '@example.org';
$this->type('email-Primary', $email);
$participants[1] = array(
'email' => $email,
'first_name' => 'Jane_' . substr(sha1(rand()), 0, 5),
'last_name' => 'San_' . substr(sha1(rand()), 0, 5),
);
$this->type('first_name', $participants[1]['first_name']);
$this->type('last_name', $participants[1]['last_name']);
$this->type('email-Primary', $email);
// fill billing related info and register
$this->_testRegisterWithBillingInfo($participants[1]);
......@@ -249,7 +254,6 @@ class WebTest_Event_ParticipantCountTest extends CiviSeleniumTestCase {
$this->type("xpath=//input[@class='form-text four required']", '2');
$email = 'jane_' . substr(sha1(rand()), 0, 5) . '@example.org';
$this->type('email-Primary', $email);
$participants[2] = array(
'email' => $email,
......@@ -257,6 +261,10 @@ class WebTest_Event_ParticipantCountTest extends CiviSeleniumTestCase {
'last_name' => 'San_' . substr(sha1(rand()), 0, 5),
);
$this->type('first_name', $participants[2]['first_name']);
$this->type('last_name', $participants[2]['last_name']);
$this->type('email-Primary', $email);
// fill billing related info and register
$this->_testRegisterWithBillingInfo($participants[2]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment