From: Dave Greenberg Date: Sun, 31 Aug 2014 00:06:56 +0000 (-0700) Subject: CRM-15197 - Additional Pledge test fixes. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=400ed621abfd205c0a93660fe1380ebb2a4233d5;p=civicrm-core.git CRM-15197 - Additional Pledge test fixes. ---------------------------------------- * CRM-15197: https://issues.civicrm.org/jira/browse/CRM-15197 --- diff --git a/tests/phpunit/WebTest/Pledge/ContactContextAddTest.php b/tests/phpunit/WebTest/Pledge/ContactContextAddTest.php index 1d5fb1d1a7..ea0b623fc7 100644 --- a/tests/phpunit/WebTest/Pledge/ContactContextAddTest.php +++ b/tests/phpunit/WebTest/Pledge/ContactContextAddTest.php @@ -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); } }