/*
* Copyright (C) 2007-2008 Alain Peyrat <aljeux at free dot fr>
* Copyright (C) 2009 Alain Peyrat, Alcatel-Lucent
+ * Copyright 2013, Franck Villaume - TrivialDev
*
* This file is part of FusionForge.
*
protected function populateStandardTemplate($what='all')
{
if ($what == 'all') {
- $what = array('trackers','tasks','forums','docs');
+ $what = array('trackers','tasks','forums');
} elseif ($what == 'empty') {
$what = array();
} elseif (!is_array($what)) {
$this->waitForPageToLoad("30000");
if (in_array ('trackers', $what)) {
- $this->click("link=Trackers Admin");
+ $this->click("link=Trackers Administration");
$this->waitForPageToLoad("30000");
$this->type("name", "Bugs");
$this->type("//input[@name='description']", "Tracker for bug reports");
$this->waitForPageToLoad("30000");
$this->click("link=Tools");
$this->waitForPageToLoad("30000");
- $this->click("link=Trackers Admin");
+ $this->click("link=Trackers Administration");
$this->waitForPageToLoad("30000");
$this->type("name", "Support Requests");
$this->type("//input[@name='description']", "Tracker for support requests");
$this->waitForPageToLoad("30000");
$this->click("link=Tools");
$this->waitForPageToLoad("30000");
- $this->click("link=Tasks Admin");
+ $this->click("link=Tasks Administration");
$this->waitForPageToLoad("30000");
$this->click("link=Add a Subproject");
$this->waitForPageToLoad("30000");
$this->click("link=Forums Admin");
$this->waitForPageToLoad("30000");
- $this->click("link=Add forum");
+ $this->click("link=Add Forum");
$this->waitForPageToLoad("30000");
$this->type("forum_name", "Open-Discussion");
$this->type("//input[@name='description']", "General Discussion");
$this->assertTrue($this->isTextPresent("Get Public Help"));
$this->assertTrue($this->isTextPresent("Project Developer Discussion"));
}
-
- if (in_array ('docs', $what)) {
- $this->click("link=Docs");
- $this->waitForPageToLoad("30000");
- $this->click("link=Add new item");
- $this->waitForPageToLoad("30000");
- $this->click("link=Add new item");
- $this->waitForPageToLoad("30000");
- $this->click("//input[@name='type' and @value='folder']");
- $this->type("groupname", "Uncategorized Submissions2");
- $this->click("//input[@id='submitaddsubgroup']");
- $this->waitForPageToLoad("30000");
- $this->assertTrue($this->isTextPresent("Uncategorized Submissions2"));
- }
}
protected function initSvn($project='ProjectA', $user=FORGE_ADMIN_USERNAME)