From a2cfaf9e371edf4ae7d189edf52e8a927b9d9146 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Sat, 27 Sep 2014 22:28:29 -0400 Subject: [PATCH] Additional webtest error check --- tests/phpunit/CiviTest/CiviSeleniumTestCase.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/phpunit/CiviTest/CiviSeleniumTestCase.php b/tests/phpunit/CiviTest/CiviSeleniumTestCase.php index c097dc8776..87841500ba 100644 --- a/tests/phpunit/CiviTest/CiviSeleniumTestCase.php +++ b/tests/phpunit/CiviTest/CiviSeleniumTestCase.php @@ -2131,6 +2131,10 @@ class CiviSeleniumTestCase extends PHPUnit_Extensions_SeleniumTestCase { $this->select2($elementName, $entityData); } } + // FIXME: Try to find out what the heck is going on with these tests + $this->waitForAjaxContent(); + $this->checkForErrorsOnPage(); + //checking for proper custom data which is loading through ajax $this->waitForElementPresent("xpath=//div[contains(@class, 'custom-group-{$customData['cgtitle']}')]"); $this->assertElementPresent("xpath=//div[contains(@class, 'custom-group-{$customData['cgtitle']}')]/div[contains(@class, 'crm-accordion-body')]/table/tbody/tr/td[2]/input", -- 2.25.1