Webtest cleanup
authorColeman Watts <coleman@civicrm.org>
Sun, 28 Sep 2014 01:40:47 +0000 (21:40 -0400)
committerColeman Watts <coleman@civicrm.org>
Sun, 28 Sep 2014 01:40:47 +0000 (21:40 -0400)
tests/phpunit/CiviTest/CiviSeleniumTestCase.php
tests/phpunit/WebTest/Activity/IcalTest.php
tests/phpunit/WebTest/Campaign/CampaignDescriptionTest.php
tests/phpunit/WebTest/Case/CaseDashboardTest.php

index cf0a2ae1cbd50c95fb9147d1efd88a00fcf9c7ff..79767e4266ca9b2d0e504316e70760f8be5f40a3 100644 (file)
@@ -400,9 +400,8 @@ class CiviSeleniumTestCase extends PHPUnit_Extensions_SeleniumTestCase {
       }
     }
     if ($added) {
-      $this->click("_qf_Component_next-bottom");
-      $this->waitForPageToLoad($this->getTimeoutMsec());
-      $this->waitForText('crm-notification-container', "Saved");
+      $this->clickLink("_qf_Component_next-bottom");
+      $this->checkCRMAlert("Saved");
     }
   }
 
index d942f936cc9998e61e843ab7f9a9353a3b8316c3..34b9a4341cf4698f6effafec76c826b747598d9a 100644 (file)
@@ -44,7 +44,7 @@ class WebTest_Activity_IcalTest extends CiviSeleniumTestCase {
   function testStandaloneActivityAdd() {
     $this->webtestLogin();
 
-    $this->openCivipage("admin/setting/preferences/display", "reset=1", "name=activity_assignee_notification_ics");
+    $this->openCiviPage("admin/setting/preferences/display", "reset=1", "name=activity_assignee_notification_ics");
 
     // Notify assignees should be checked by default, so we just need to click the ical setting which is off by default.
     $this->check("name=activity_assignee_notification_ics");
@@ -58,7 +58,7 @@ class WebTest_Activity_IcalTest extends CiviSeleniumTestCase {
     $firstName1 = substr(sha1(rand()), 0, 7);
     $this->webtestAddContact("$firstName1", "Anderson", $firstName1 . "@anderson.com");
 
-    $this->openCivipage("activity", "reset=1&action=add&context=standalone", "_qf_Activity_upload");
+    $this->openCiviPage("activity", "reset=1&action=add&context=standalone", "_qf_Activity_upload");
 
     $this->select("activity_type_id", "value=1");
 
index 9fbe1585b2599038d7276643b5aaef80ff7da5c0..aa797c91933343c4a74c18e5680bbeac438c1055 100644 (file)
@@ -47,7 +47,7 @@ class WebTest_Campaign_CampaignDescriptionTest extends CiviSeleniumTestCase {
     $this->enableComponents(array('CiviCampaign'));
 
     //Creating a new Campaign
-    $this->openCivipage('campaign/add', 'reset=1', '_qf_Campaign_upload-bottom');
+    $this->openCiviPage('campaign/add', 'reset=1', '_qf_Campaign_upload-bottom');
 
     $campaignTitle = "Campaign $title";
     $this->type("title", $campaignTitle);
index a6cba882b89cf9a1e95d1bcf19f2619ff661a284..ea8b90857abfc63f545cb7b665a36dfa916e086c 100644 (file)
@@ -104,7 +104,7 @@ class WebTest_Case_CaseDashboardTest extends CiviSeleniumTestCase {
     $this->waitForText('crm-notification-container', "Case opened successfully.");
 
     // Go back to dashboard
-    $this->openCivipage('case', 'reset=1', 'css=a.button');
+    $this->openCiviPage('case', 'reset=1');
 
     // Click on a drilldown cell and check if right radio is checked
     $this->clickLink("css=a.crm-case-summary-drilldown", "css=input.crm-form-submit");