soft credit fixes for WebTest_Contribute_UpdatePendingContributionTest
authorkurund <kurund@civicrm.org>
Mon, 12 Aug 2013 19:12:27 +0000 (00:42 +0530)
committerkurund <kurund@civicrm.org>
Mon, 12 Aug 2013 19:12:27 +0000 (00:42 +0530)
tests/phpunit/WebTest/Contribute/UpdatePendingContributionTest.php

index 64cba7dd0c06c205dbc62f775e17a7de8fa5289f..4bf8969ef13c1defd4b037655da522d6d7fd350b 100644 (file)
@@ -106,11 +106,7 @@ class WebTest_Contribute_UpdatePendingContributionTest extends CiviSeleniumTestC
     $this->type("trxn_id", "P20901X1" . rand(100, 10000));
 
     // soft credit
-    $this->type("soft_credit_to", $softCreditFname);
-    $this->fireEvent("soft_credit_to", "focus");
-    $this->click('soft_credit_to');
-    $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');