From a3b68c30bbb257d5c7bdeaf1a289f6c3ff5f94c4 Mon Sep 17 00:00:00 2001 From: kurund Date: Wed, 14 Aug 2013 13:29:02 +0530 Subject: [PATCH] fixed --filter=testCreateCampaign WebTest_Campaign_OnlineEventRegistrationTest --- .../WebTest/Campaign/OnlineEventRegistrationTest.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/phpunit/WebTest/Campaign/OnlineEventRegistrationTest.php b/tests/phpunit/WebTest/Campaign/OnlineEventRegistrationTest.php index 2f7ec65ad2..08187da4f1 100644 --- a/tests/phpunit/WebTest/Campaign/OnlineEventRegistrationTest.php +++ b/tests/phpunit/WebTest/Campaign/OnlineEventRegistrationTest.php @@ -270,8 +270,11 @@ class WebTest_Campaign_OnlineEventRegistrationTest extends CiviSeleniumTestCase $this->open($registerUrl); $this->select("additional_participants", "value=" . $numberRegistrations); - $email = "smith" . substr(sha1(rand()), 0, 7) . "@example.org"; + $this->type("first_name", 'Jane'); + $lastName = "Smith" . substr(sha1(rand()), 0, 7); + $this->type("last_name", $lastName); + $email = "smith" . substr(sha1(rand()), 0, 7) . "@example.org"; $this->type("email-Primary", $email); $this->select("credit_card_type", "value=Visa"); @@ -280,7 +283,7 @@ class WebTest_Campaign_OnlineEventRegistrationTest extends CiviSeleniumTestCase $this->select("credit_card_exp_date[M]", "value=1"); $this->select("credit_card_exp_date[Y]", "value=2020"); $this->type("billing_first_name", "Jane"); - $this->type("billing_last_name", "Smith" . substr(sha1(rand()), 0, 7)); + $this->type("billing_last_name", $lastName); $this->type("billing_street_address-5", "15 Main St."); $this->type(" billing_city-5", "San Jose"); $this->select("billing_country_id-5", "value=1228"); @@ -294,6 +297,8 @@ class WebTest_Campaign_OnlineEventRegistrationTest extends CiviSeleniumTestCase $this->waitForPageToLoad($this->getTimeoutMsec()); // Look for Skip button $this->waitForElementPresent("_qf_Participant_{$i}_next_skip-Array"); + $this->type("first_name", "Jane Add $i"); + $this->type("last_name", "Smith" . substr(sha1(rand()), 0, 7)); $this->type("email-Primary", "smith" . substr(sha1(rand()), 0, 7) . "@example.org"); $this->click("_qf_Participant_{$i}_next"); } -- 2.25.1