Changed out click and waitfortext due to processor line appearing in irregular places
authorMaggie <maggie.epps@gmail.com>
Tue, 16 Sep 2014 19:34:24 +0000 (15:34 -0400)
committerMaggie <maggie.epps@gmail.com>
Tue, 16 Sep 2014 19:34:24 +0000 (15:34 -0400)
tests/phpunit/CiviTest/CiviSeleniumTestCase.php

index bcc4ad2ffcca868754b446d88c01a0e9e3c250ba..e517f4bb60a972dde2c2443a60898b6788a6f8b7 100644 (file)
@@ -739,7 +739,8 @@ class CiviSeleniumTestCase extends PHPUnit_Extensions_SeleniumTestCase {
     }
 
     // Is new processor created?
-    $this->clickLink('_qf_PaymentProcessor_next-bottom', "xpath=//div[@class='content']//table[@class='selector row-highlight']//tbody/tr[last()]/td[2][text()='AuthNet']");
+    $this->click('_qf_PaymentProcessor_next-bottom');
+    $this->waitForTextPresent($processorName);
     $this->assertTrue($this->isTextPresent($processorName), 'Processor name not found in selector after adding payment processor (webTestAddPaymentProcessor).');
 
     $paymentProcessorId = explode('&id=', $this->getAttribute("xpath=//table[@class='selector row-highlight']//tbody//tr/td[text()='{$processorName}']/../td[7]/span/a[1]@href"));