Additional webtest error check
authorColeman Watts <coleman@civicrm.org>
Sun, 28 Sep 2014 02:28:29 +0000 (22:28 -0400)
committerColeman Watts <coleman@civicrm.org>
Sun, 28 Sep 2014 02:28:29 +0000 (22:28 -0400)
tests/phpunit/CiviTest/CiviSeleniumTestCase.php

index c097dc8776a7ad8eac9b2efbb9839bb15b3640d6..87841500ba4a4d3e53e481bfbf4a001efd5201cc 100644 (file)
@@ -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",