// Join Date > Rollover Date and Join Date < Start Date
- // 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);
-
// Log in using webtestLogin() method
$this->webtestLogin();
- $this->open($this->sboxPath . "civicrm/contact/add?reset=1&ct=Organization");
- $this->waitForElementPresent('_qf_Contact_cancel');
+ $this->openCiviPage("contact/add", "reset=1&ct=Organization", '_qf_Contact_cancel');
$title = substr(sha1(rand()), 0, 7);
$this->type('organization_name', "Organization $title");
$this->assertTrue($this->isTextPresent("Organization $title has been created."));
- // Go directly to the URL
$this->open($this->sboxPath . "civicrm/admin/member/membershipType?reset=1&action=browse");
$this->waitForPageToLoad($this->getTimeoutMsec());
$this->waitForElementPresent('link=Add Membership Type');
$this->assertTrue($this->isTextPresent("The membership type 'Membership Type $title' has been saved."));
- // Go directly to the URL of the screen that you will be testing (New Individual).
$this->open($this->sboxPath . "civicrm/contact/add?reset=1&ct=Individual");
$firstName = "John_" . substr(sha1(rand()), 0, 7);
// Rollover Date < Join Date
- // 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);
-
// Log in using webtestLogin() method
$this->webtestLogin();
- $this->open($this->sboxPath . "civicrm/contact/add?reset=1&ct=Organization");
- $this->waitForElementPresent('_qf_Contact_cancel');
+ $this->openCiviPage("contact/add", "reset=1&ct=Organization", '_qf_Contact_cancel');
$title = substr(sha1(rand()), 0, 7);
$this->type('organization_name', "Organization $title");
$this->assertTrue($this->isTextPresent("Organization $title has been created."));
- // Go directly to the URL
$this->open($this->sboxPath . "civicrm/admin/member/membershipType?reset=1&action=browse");
$this->waitForPageToLoad($this->getTimeoutMsec());
$this->waitForElementPresent('link=Add Membership Type');
$this->assertTrue($this->isTextPresent("The membership type 'Membership Type $title' has been saved."));
- // Go directly to the URL of the screen that you will be testing (New Individual).
$this->open($this->sboxPath . "civicrm/contact/add?reset=1&ct=Individual");
$firstName = "John_" . substr(sha1(rand()), 0, 7);
// Join Date is later than Rollover Date
- // 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);
-
// Log in using webtestLogin() method
$this->webtestLogin();
- $this->open($this->sboxPath . "civicrm/contact/add?reset=1&ct=Organization");
- $this->waitForElementPresent('_qf_Contact_cancel');
+ $this->openCiviPage("contact/add", "reset=1&ct=Organization", '_qf_Contact_cancel');
$title = substr(sha1(rand()), 0, 7);
$this->type('organization_name', "Organization $title");
$this->assertTrue($this->isTextPresent("Organization $title has been created."));
- // Go directly to the URL
$this->open($this->sboxPath . "civicrm/admin/member/membershipType?reset=1&action=browse");
$this->waitForPageToLoad($this->getTimeoutMsec());
$this->waitForElementPresent('link=Add Membership Type');
$this->assertTrue($this->isTextPresent("The membership type 'Membership Type $title' has been saved."));
- // Go directly to the URL of the screen that you will be testing (New Individual).
$this->open($this->sboxPath . "civicrm/contact/add?reset=1&ct=Individual");
$firstName = "John_" . substr(sha1(rand()), 0, 7);
// Join Date is earlier than Rollover Date
- // 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);
-
// Log in using webtestLogin() method
$this->webtestLogin();
- $this->open($this->sboxPath . "civicrm/contact/add?reset=1&ct=Organization");
- $this->waitForElementPresent('_qf_Contact_cancel');
+ $this->openCiviPage("contact/add", "reset=1&ct=Organization", '_qf_Contact_cancel');
$title = substr(sha1(rand()), 0, 7);
$this->type('organization_name', "Organization $title");
$this->assertTrue($this->isTextPresent("Organization $title has been created."));
- // Go directly to the URL
$this->open($this->sboxPath . "civicrm/admin/member/membershipType?reset=1&action=browse");
$this->waitForPageToLoad($this->getTimeoutMsec());
$this->waitForElementPresent('link=Add Membership Type');
$this->assertTrue($this->isTextPresent("The membership type 'Membership Type $title' has been saved."));
- // Go directly to the URL of the screen that you will be testing (New Individual).
$this->open($this->sboxPath . "civicrm/contact/add?reset=1&ct=Individual");
$firstName = "John_" . substr(sha1(rand()), 0, 7);