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

tests/phpunit/WebTest/Pledge/ContactContextAddTest.php

index 1d5fb1d1a7e11d541e635aa208a749110398ff91..ea0b623fc793b107f4f0f7551f317c56c58e089f 100644 (file)
@@ -37,6 +37,8 @@ class WebTest_Pledge_ContactContextAddTest extends CiviSeleniumTestCase {
 
   function testContactContextAddTest() {
     $this->webtestLogin();
+    // Disable pop-ups for this test. Running test w/ pop-ups causes a spurious failure. dgg
+    $this->enableDisablePopups(FALSE);
 
     // create unique name
     $name      = substr(sha1(rand()), 0, 7);
@@ -112,6 +114,8 @@ class WebTest_Pledge_ContactContextAddTest extends CiviSeleniumTestCase {
     $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']");
+    // Re-enable pop-ups to leave things in the same state
+    $this->enableDisablePopups(TRUE);
   }
 }