<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.3 |
+ | CiviCRM version 4.5 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013 |
+ | Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
+--------------------------------------------------------------------+
*/
-
require_once 'WebTest/Import/ImportCiviSeleniumTestCase.php';
class WebTest_Import_ContactCustomDataTest extends ImportCiviSeleniumTestCase {
$this->assertTrue($this->isTextPresent('This is a test field'));
}
-
/*
* Helper function to provide data for custom data import.
*/
$this->waitForElementPresent('_qf_Field_cancel-bottom');
//Is custom group created?
- $this->assertTrue($this->isTextPresent("Your custom field set '{$customGroupTitle}' has been added. You can add custom fields now."));
- $url = explode('gid=', $this->getLocation());
- $gid = $url[1];
+ $this->waitForText('crm-notification-container', $customGroupTitle);
+ $gid = $this->urlArg('gid');
// create another custom field - Date
$customField = 'Custom field ' . substr(sha1(rand()), 0, 4);