<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.3 |
+ | CiviCRM version 4.4 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2013 |
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
*/
-
require_once 'WebTest/Import/ImportCiviSeleniumTestCase.php';
class WebTest_Import_ContactTest extends ImportCiviSeleniumTestCase {
- protected $captureScreenshotOnFailure = TRUE;
- protected $screenshotPath = '/var/www/api.dev.civicrm.org/public/sc';
- protected $screenshotUrl = 'http://api.dev.civicrm.org/sc/';
-
protected function setUp() {
parent::setUp();
}
// Visit contacts to check updated data.
foreach ($updateRows as $updatedRow) {
- $this->open($this->sboxPath . "civicrm/contact/view?reset=1&cid={$updatedRow['contact_id']}");
- $this->waitForPageToLoad($this->getTimeoutMsec());
+ $this->openCiviPage("contact/view", "reset=1&cid={$updatedRow['contact_id']}");
$displayName = "{$updatedRow['first_name']} {$updatedRow['last_name']}";
$this->assertTrue($this->isTextPresent("$displayName"), "Contact did not update!");
// Visit contacts to check filled data.
foreach ($fillRows as $cid => $fillRow) {
- $this->open($this->sboxPath . "civicrm/contact/view?reset=1&cid={$fillRow['contact_id']}");
- $this->waitForPageToLoad($this->getTimeoutMsec());
+ $this->openCiviPage("contact/view", "reset=1&cid={$fillRow['contact_id']}");
// Check old display name.
$displayName = "{$updateRows[$cid]['first_name']} {$updateRows[$cid]['last_name']}";
// Visit contacts to check updated data.
foreach ($updateRows as $updatedRow) {
$organizationName = $updatedRow['organization_name'];
- $this->open($this->sboxPath . "civicrm/contact/view?reset=1&cid={$updatedRow['contact_id']}");
- $this->waitForPageToLoad($this->getTimeoutMsec());
+ $this->openCiviPage("contact/view", "reset=1&cid={$updatedRow['contact_id']}");
$this->assertTrue($this->isTextPresent("$organizationName"), "Contact did not update!");
}
// Visit contacts to check filled data.
foreach ($fillRows as $cid => $fillRow) {
- $this->open($this->sboxPath . "civicrm/contact/view?reset=1&cid={$fillRow['contact_id']}");
- $this->waitForPageToLoad($this->getTimeoutMsec());
+ $this->openCiviPage("contact/view", "reset=1&cid={$fillRow['contact_id']}");
// Check old Organization name.
$organizationName = $updateRows[$cid]['organization_name'];
// Visit contacts to check updated data.
foreach ($updateRows as $updatedRow) {
$householdName = $updatedRow['household_name'];
- $this->open($this->sboxPath . "civicrm/contact/view?reset=1&cid={$updatedRow['contact_id']}");
- $this->waitForPageToLoad($this->getTimeoutMsec());
+ $this->openCiviPage("contact/view", "reset=1&cid={$updatedRow['contact_id']}");
$this->assertTrue($this->isTextPresent("$householdName"), "Contact did not update!");
}
// Visit contacts to check filled data.
foreach ($fillRows as $cid => $fillRow) {
- $this->open($this->sboxPath . "civicrm/contact/view?reset=1&cid={$fillRow['contact_id']}");
- $this->waitForPageToLoad($this->getTimeoutMsec());
+ $this->openCiviPage("contact/view", "reset=1&cid={$fillRow['contact_id']}");
// Check old Household name.
$householdName = $updateRows[$cid]['household_name'];