From: kurund Date: Mon, 12 Aug 2013 19:10:30 +0000 (+0530) Subject: soft credit fixes for WebTest_Contribute_StandaloneAddTest X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=fd40e2c212f68d9b8bbb35276f1d3cfaed65fd6d;p=civicrm-core.git soft credit fixes for WebTest_Contribute_StandaloneAddTest --- diff --git a/tests/phpunit/WebTest/Contribute/StandaloneAddTest.php b/tests/phpunit/WebTest/Contribute/StandaloneAddTest.php index 89f4fa99dd..f6466eabbf 100644 --- a/tests/phpunit/WebTest/Contribute/StandaloneAddTest.php +++ b/tests/phpunit/WebTest/Contribute/StandaloneAddTest.php @@ -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');