Merge pull request #233 from mlutfy/minifixes
[civicrm-core.git] / tests / phpunit / WebTest / Admin / Form / ScheduleReminderTest.php
index 9fd1f52d502a95460f305f0f9d3ecbe8e8be71c4..94e1a6e8073eb7879626c9bb0e3b591c6be637db 100644 (file)
@@ -24,7 +24,6 @@
  +--------------------------------------------------------------------+
 */
 
-
 require_once 'CiviTest/CiviSeleniumTestCase.php';
 class WebTest_Admin_Form_ScheduleReminderTest extends CiviSeleniumTestCase {
 
@@ -33,23 +32,10 @@ class WebTest_Admin_Form_ScheduleReminderTest extends CiviSeleniumTestCase {
   }
 
   function testScheduleReminder() {
-
-    // This is the path where our testing install resides.
-    // The rest of URL is defined in CiviSeleniumTestCase base class, in
-    // class attributes.
-    $this->open($this->sboxPath);
-
-    // Logging in. Remember to wait for page to load. In most cases,
-    // you can rely on 30000 as the value that allows your test to pass, however,
-    // sometimes your test might fail because of this. In such cases, it's better to pick one element
-    // somewhere at the end of page and use waitForElementPresent on it - this assures you, that whole
-    // page contents loaded and you can continue your test execution.
     $this->webtestLogin();
 
     // Add new Schedule Reminder
-    $this->open($this->sboxPath . 'civicrm/admin/scheduleReminders?reset=1');
-    $this->open($this->sboxPath . 'civicrm/admin/scheduleReminders?action=add&reset=1');
-    $this->waitForElementPresent('_qf_ScheduleReminders_cancel-bottom');
+    $this->openCiviPage("admin/scheduleReminders", "action=add&reset=1", '_qf_ScheduleReminders_cancel-bottom');
 
     // Fill Title
     $title = 'Title' . substr(sha1(rand()), 0, 4);