From 400ed621abfd205c0a93660fe1380ebb2a4233d5 Mon Sep 17 00:00:00 2001 From: Dave Greenberg Date: Sat, 30 Aug 2014 17:06:56 -0700 Subject: [PATCH] CRM-15197 - Additional Pledge test fixes. ---------------------------------------- * CRM-15197: https://issues.civicrm.org/jira/browse/CRM-15197 --- tests/phpunit/WebTest/Pledge/ContactContextAddTest.php | 4 ++++ 1 file changed, 4 insertions(+) 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); } } -- 2.25.1