CRM-15197 - Additional Pledge test fixes.
[civicrm-core.git] / tests / phpunit / WebTest / Pledge / ContactContextAddTest.php
index 22387dd102df5cf231f0ae85c1f696f9bfdc9487..1d5fb1d1a7e11d541e635aa208a749110398ff91 100644 (file)
@@ -108,8 +108,10 @@ class WebTest_Pledge_ContactContextAddTest extends CiviSeleniumTestCase {
     }
 
     $this->clickLink("_qf_PledgeView_next-bottom", "xpath=//div[@class='view-content']//table//tbody/tr[1]/td[10]/span[1]/a[text()='View']", FALSE);
+    
+    $this->waitForElementPresent("xpath=//div[@class='view-content']//table[@class='selector row-highlight']//tbody/tr[1]/td[1]/span/a");
     $this->click("xpath=//div[@class='view-content']//table[@class='selector row-highlight']//tbody/tr[1]/td[1]/span/a");
-    $this->waitForElementPresent("xpath=//div[@class='view-content']//table//tbody//tr//td[2]/table/tbody/tr[2]/td[8]/a[text()='Record Payment (Check, Cash, EFT ...)']");
+    $this->waitForElementPresent("xpath=//div[@class='view-content']//table//tbody//tr//td[2]/table/tbody/tr[2]/td[8]/a[text()='Record Payment']");
   }
 }