soft credit fixes for WebTest_Contribute_StandaloneAddTest
authorkurund <kurund@civicrm.org>
Mon, 12 Aug 2013 19:10:30 +0000 (00:40 +0530)
committerkurund <kurund@civicrm.org>
Mon, 12 Aug 2013 19:10:30 +0000 (00:40 +0530)
tests/phpunit/WebTest/Contribute/StandaloneAddTest.php

index 89f4fa99dd9a3af4c1cfa815ca62bd2d05e0b001..f6466eabbf938081899f9bf560bba2b9eb798d93 100644 (file)
@@ -94,11 +94,7 @@ class WebTest_Contribute_StandaloneAddTest extends CiviSeleniumTestCase {
     $this->type("trxn_id", "P20901X1" . rand(100, 10000));
 
     // soft credit
-    $this->click("soft_credit_to");
-    $this->type("soft_credit_to", $softCreditFname);
-    $this->typeKeys("soft_credit_to", $softCreditFname);
-    $this->waitForElementPresent("css=div.ac_results-inner li");
-    $this->click("css=div.ac_results-inner li");
+    $this->webtestFillAutocomplete("{$softCreditLname}, {$softCreditFname}", 'soft_credit_contact_1');
 
     //Custom Data
     //$this->click('CIVICRM_QFID_3_6');