Import from SVN (r45945, r596)
[civicrm-core.git] / tests / phpunit / WebTest / Generic / CheckFindTest.php
CommitLineData
6a488035
TO
1<?php
2/*
3 +--------------------------------------------------------------------+
4 | CiviCRM version 4.3 |
5 +--------------------------------------------------------------------+
6 | Copyright CiviCRM LLC (c) 2004-2013 |
7 +--------------------------------------------------------------------+
8 | This file is a part of CiviCRM. |
9 | |
10 | CiviCRM is free software; you can copy, modify, and distribute it |
11 | under the terms of the GNU Affero General Public License |
12 | Version 3, 19 November 2007. |
13 | |
14 | CiviCRM is distributed in the hope that it will be useful, but |
15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
17 | See the GNU Affero General Public License for more details. |
18 | |
19 | You should have received a copy of the GNU Affero General Public |
20 | License along with this program; if not, contact CiviCRM LLC |
21 | at info[AT]civicrm[DOT]org. If you have questions about the |
22 | GNU Affero General Public License or the licensing of CiviCRM, |
23 | see the CiviCRM license FAQ at http://civicrm.org/licensing |
24 +--------------------------------------------------------------------+
25*/
26
27
28require_once 'CiviTest/CiviSeleniumTestCase.php';
29class WebTest_Generic_CheckFindTest extends CiviSeleniumTestCase {
30
31 protected function setUp() {
32 parent::setUp();
33 }
34
35 function testCheckDashboardElements() {
36 $this->open($this->sboxPath);
37 $this->webtestLogin();
38
39 // Go directly to the URL of the screen that you will be testing.
40 $this->open($this->sboxPath . "civicrm/contact/search?reset=1");
41 $this->waitForElementPresent("_qf_Basic_refresh");
42 $this->click("//input[@name='_qf_Basic_refresh' and @value='Search']");
43 $this->waitForPageToLoad($this->getTimeoutMsec());
44 $this->assertTrue($this->isElementPresent("search-status"));
45 }
46}
47
48