3 * Copyright (C) 2010 Alcatel-Lucent
5 * This file is part of FusionForge.
7 * FusionForge is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published
9 * by the Free Software Foundation; either version 2 of the License,
10 * or (at your option) any later version.
12 * FusionForge is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
17 * You should have received a copy of the GNU General Public License along
18 * with this program; if not, write to the Free Software Foundation, Inc.,
19 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23 * Standard Alcatel-Lucent disclaimer for contributing to open source
25 * "The test suite ("Contribution") has not been tested and/or
26 * validated for release as or in products, combinations with products or
27 * other commercial use. Any use of the Contribution is entirely made at
28 * the user's own responsibility and the user can not rely on any features,
29 * functionalities or performances Alcatel-Lucent has attributed to the
32 * THE CONTRIBUTION BY ALCATEL-LUCENT IS PROVIDED AS IS, WITHOUT WARRANTY
33 * OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
34 * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, COMPLIANCE,
35 * NON-INTERFERENCE AND/OR INTERWORKING WITH THE SOFTWARE TO WHICH THE
36 * CONTRIBUTION HAS BEEN MADE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL
37 * ALCATEL-LUCENT BE LIABLE FOR ANY DAMAGES OR OTHER LIABLITY, WHETHER IN
38 * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
39 * CONTRIBUTION OR THE USE OR OTHER DEALINGS IN THE CONTRIBUTION, WHETHER
40 * TOGETHER WITH THE SOFTWARE TO WHICH THE CONTRIBUTION RELATES OR ON A STAND
44 require_once dirname(dirname(__FILE__)).'/Testing/SeleniumGforge.php';
46 class ContextualHelp extends FForge_SeleniumTestCase
48 function testContextualHelp()
51 $this->activatePlugin('online_help');
52 $this->login ('admin');
54 $this->checkWindow("link=Home", "User Guide");
56 $this->gotoProject ("ProjectA");
57 $this->checkWindow("link=Forums", "Creating a new forum");
58 $this->checkWindow("link=Tracker", "What is the Tracker?");
59 $this->checkWindow("link=Lists", "Mailing Lists");
60 $this->checkWindow("link=Tasks", "Inserting a new Task");
61 $this->checkWindow("link=Docs", "Submit new documentation");
62 $this->checkWindow("link=Surveys", "Administering survey questions");
63 $this->checkWindow("link=News", "Inserting a news item");
64 // $this->checkWindow("link=SCM", "Source Code menu");
65 $this->checkWindow("link=Files", "Managing packages and releases via CLI");
68 function checkWindow($action, $text)
70 $this->clickAndWait($action);
71 $this->click("link=Get Help");
73 $this->waitForPopUp("HelpWindow", "30000");
74 $this->selectWindow("name=HelpWindow");
75 $this->assertTextPresent($text);
77 $this->selectWindow("");