CRM-15197 - Additional Pledge test fixes.
authorDave Greenberg <dave@civicrm.org>
Sun, 31 Aug 2014 00:02:34 +0000 (17:02 -0700)
committerDave Greenberg <dave@civicrm.org>
Sun, 31 Aug 2014 00:02:34 +0000 (17:02 -0700)
----------------------------------------
* CRM-15197:
  https://issues.civicrm.org/jira/browse/CRM-15197

tests/phpunit/WebTest/Pledge/ContactContextAddTest.php
tests/phpunit/WebTest/Pledge/StandaloneAddTest.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']");
   }
 }
 
index e27df2017ab213a1c7d685bb09a8a4511544ba5f..bcca84a6916efe61de321bf9df4005bd23fd171a 100644 (file)
@@ -88,8 +88,10 @@ class WebTest_Pledge_StandaloneAddTest extends CiviSeleniumTestCase {
       )
     );
     $this->clickLink('_qf_PledgeView_next-bottom', "xpath=//div[@class='view-content']//table[@class='selector row-highlight']//tbody/tr[1]/td[1]/span/a", 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[2]/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[2]/td[2]/table/tbody/tr[2]/td[8]/a[text()='Record Payment']");
   }
 }