+--------------------------------------------------------------------+
*/
-
require_once 'CiviTest/CiviSeleniumTestCase.php';
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);