fixes for --filter=testRegisterWithPriceSet WebTest_Event_AddPricesetTest
authorkurund <kurund@civicrm.org>
Tue, 13 Aug 2013 19:30:42 +0000 (01:00 +0530)
committerkurund <kurund@civicrm.org>
Tue, 13 Aug 2013 19:30:42 +0000 (01:00 +0530)
tests/phpunit/WebTest/Event/AddPricesetTest.php

index ad77c6e2f24494396bb6b0c1d6b7732156a77e52..268bf10bbb8aedcb7af1329a680a2397fb5453ae 100644 (file)
@@ -284,6 +284,9 @@ class WebTest_Event_AddPricesetTest extends CiviSeleniumTestCase {
     $this->type("xpath=//input[@class='form-text four required']", "1");
     $this->click("xpath=//input[@class='form-radio']");
     $this->click("xpath=//input[@class='form-checkbox']");
+    $this->type("first_name", "Jane");
+    $lastName = "Smith" . substr(sha1(rand()), 0, 7);
+    $this->type("last_name", $lastName);
     $this->type('email-Primary', $email);
 
     $this->waitForElementPresent('credit_card_type');
@@ -293,7 +296,7 @@ class WebTest_Event_AddPricesetTest 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', 'San');
+    $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');