Webtests Fixes
authorWeb Access <rohan.katkar@webaccessglobal.com>
Mon, 11 Jan 2016 08:36:05 +0000 (14:06 +0530)
committerWeb Access <rohan.katkar@webaccessglobal.com>
Mon, 11 Jan 2016 08:36:05 +0000 (14:06 +0530)
tests/phpunit/WebTest/Event/AddEventTest.php
tests/phpunit/WebTest/Member/OnlineMembershipCreateTest.php
tests/phpunit/WebTest/Report/AddTest.php

index f62bd407db5ac626d3d707560995f2523ecf821b..cccd06e7405d413f2b65f1d815ce62fb42b362d9 100644 (file)
@@ -358,7 +358,7 @@ class WebTest_Event_AddEventTest extends CiviSeleniumTestCase {
     // Using helper webtestFillDate function.
     $this->webtestFillDateTime("start_date", "+1 week");
     $this->webtestFillDateTime("end_date", "+1 week 1 day 8 hours ");
-
+    $this->waitForElementPresent('max_participants');
     $this->type("max_participants", "50");
     $this->click("is_map");
     $this->click("is_public");
@@ -1036,6 +1036,7 @@ WHERE ceft.entity_id = %1 AND ceft.entity_table = 'civicrm_contribution'";
 
     //Add event
     $this->openCiviPage("event/add", "reset=1&action=add");
+    $this->waitForElementPresent("_qf_EventInfo_cancel-bottom");
     $eventName = 'My Event - ' . substr(sha1(rand()), 0, 7);
     $eventDescription = "Here is a description for this conference.";
     $this->_testAddEventInfo($eventName, $eventDescription);
index 73f073ecd135e0bd32dc710e427d3b93f25b25ae..bbdc4b2331dd618e311374e7d1317146c47ed632 100644 (file)
@@ -233,7 +233,7 @@ class WebTest_Member_OnlineMembershipCreateTest extends CiviSeleniumTestCase {
     }
     if ($payLater) {
       $this->waitForAjaxContent();
-      $this->click("xpath=//label[text()='Pay later label {$hash}']");
+      $this->click("xpath=//div[@class='payment_processor-section']/div[2]/label[text()='Pay later label {$hash}']");
     }
     $this->type("email-5", $firstName . "@example.com");
     $this->waitForElementPresent("first_name");
index d82898c4a3b01aa0e4dce4677f248d93c2fff2b6..778404785232337cbb03a74426f9f12b4e232385 100644 (file)
@@ -117,6 +117,7 @@ class WebTest_Report_AddTest extends CiviSeleniumTestCase {
 
     // We want navigation menu
     $this->click("xpath=//div[@class='crm-report-criteria']/div[@id='mainTabContainer']/ul//li/a[text()='Access']");
+    $this->waitForAjaxContent();
     $this->click("is_navigation");
 
     // Navigation menu under Reports section
@@ -188,6 +189,7 @@ class WebTest_Report_AddTest extends CiviSeleniumTestCase {
 
     // Is Navigation?
     $this->click("xpath=//div[@class='crm-report-criteria']/div[@id='mainTabContainer']/ul/li[6]/a");
+    $this->waitForAjaxContent();
     $this->assertEquals("on", $this->getValue("is_navigation"));
 
     // Is correct Navigation Parent?