<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.4 |
+ | 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 'CiviTest/CiviSeleniumTestCase.php';
+
+/**
+ * Class WebTest_Contact_SearchbyDateFilterTest
+ */
class WebTest_Contact_SearchbyDateFilterTest extends CiviSeleniumTestCase {
protected function setUp() {
}
/*
- * Function to test individual pane seperatly.
+ * test individual pane seperatly.
*/
function testAdvancedSearch() {
$this->webtestLogin();
$this->waitForPageToLoad(2 * $this->getTimeoutMsec());
}
+ /**
+ * @param array $openedPanes
+ */
function _checkOpenedPanes($openedPanes = array(
)) {
- if (!$this->isTextPresent('No matches found')) {
+ if (!$this->isTextPresent('None found.')) {
$this->click('css=div.crm-advanced_search_form-accordion div.crm-accordion-header');
}
}
}
+ /**
+ * @param $paneRef
+ * @param array $selectFields
+ */
function _selectPaneFields($paneRef, $selectFields = array(
)) {
$pane = $this->_advanceSearchPanesDateFilter($paneRef);
}
}
+ /**
+ * @param null $paneRef
+ *
+ * @return array
+ */
function _advanceSearchPanesDateFilter($paneRef = NULL) {
static $_advance_search_panes;
'event' =>
array(
'headerLocator' => 'div#CiviEvent',
- 'bodyLocator' => 'input#event_name',
+ 'bodyLocator' => 'input#event_id',
'title' => 'Events',
'fields' =>
array(