soft credit fixes for WebTest_Contribute_ContactContextAddTest
authorkurund <kurund@civicrm.org>
Mon, 12 Aug 2013 16:34:57 +0000 (22:04 +0530)
committerkurund <kurund@civicrm.org>
Mon, 12 Aug 2013 16:34:57 +0000 (22:04 +0530)
tests/phpunit/WebTest/Contribute/ContactContextAddTest.php

index b187b2e503f319c83bddf28a4c3737aef57d0381..da7eaf6a14985a43a106cba0efa15630cda768b7 100644 (file)
@@ -107,11 +107,7 @@ class WebTest_Contribute_ContactContextAddTest 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->waitForElementPresent('CIVICRM_QFID_3_6');