Merge pull request #10030 from eileenmcnaughton/test
[civicrm-core.git] / tests / phpunit / WebTest / Import / ParticipantTest.php
index 54bd4e8b1f514cf4b596111e389f79a2c2ac98c8..db4029308ec830fdcbf68e3e0f1f79ae9cfb6c84 100644 (file)
@@ -3,7 +3,7 @@
  +--------------------------------------------------------------------+
  | CiviCRM version 4.7                                                |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2015                                |
+ | Copyright CiviCRM LLC (c) 2004-2017                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
@@ -295,9 +295,8 @@ class WebTest_Import_ParticipantTest extends ImportCiviSeleniumTestCase {
     $this->click("CIVICRM_QFID_1_is_monetary");
 
     // select newly created processor
-    $xpath = "xpath=//label[text() = '{$processorName}']/preceding-sibling::input[1]";
+    $this->select2('payment_processor', $processorName, TRUE);
     $this->assertElementContainsText('paymentProcessor', $processorName);
-    $this->check($xpath);
     $this->select("financial_type_id", "value=4");
 
     $counter = 1;