<?php
-/*
+/**
* Copyright 2011, Roland Mas
+ * Copyright 2013, Franck Villaume - TrivialDev
*
* This file is part of FusionForge.
*
* it under the terms of the GNU General Public License as published
* by the Free Software Foundation; either version 2 of the License,
* or (at your option) any later version.
- *
+ *
* FusionForge is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
$this->assertFalse($this->isTextPresent("Bug2"));
// Search in one particular tracker
-
+
$this->select("type_of_search", "label=This project's trackers");
$this->type("//input[@name='words']", "charlie");
$this->clickAndWait("//input[@name='Search']");
$this->type("details", "The same thing we do every night, Pinky - try to take over the world! - also, ZONGO");
$this->type("hours", "199");
$this->clickAndWait("submit");
-
+
$this->clickAndWait("link=Task1 the brain");
$this->type("details", 'This is the needle for tasks');
$this->clickAndWait("submit");
$this->type("details", "Otherwise WW4 will be fought with sticks - also, ZONGO");
$this->type("hours", "199");
$this->clickAndWait("submit");
-
+
// Search in Tasks
$this->select("type_of_search", "label=This project's tasks");
$this->assertTrue($this->isTextPresent("Task1"));
// Post some messages in a forum
-
+
$this->gotoProject('projecta');
$this->clickAndWait("link=Forums");
$this->clickAndWait("link=open-discussion");
$this->gotoProject('projecta');
$this->clickAndWait("link=Docs");
$this->clickAndWait("addItemDocmanMenu");
- $this->click("buttonDoc");
+ // ugly hack until we fix behavior in docman when no folders exist. We need to click twice on the link
+ $this->clickAndWait("addItemDocmanMenu");
+ $this->click("id=tab-new-document");
$this->type("title", "Doc1 Vladimir");
- $this->type("description", "Jenkins buildbot - also, ZONGO");
+ $this->type("//input[@name='description']", "Jenkins buildbot - also, ZONGO");
$this->click("//input[@name='type' and @value='pasteurl']");
- $this->type("file_url", "http://buildbot3.fusionforge.org/");
+ $this->type("file_url", "http://buildbot.fusionforge.org/");
$this->clickAndWait("submit");
$this->clickAndWait("addItemDocmanMenu");
- $this->click("buttonDoc");
+ $this->click("id=tab-new-document");
$this->type("title", "Doc2 Astromir");
$this->type("//input[@name='description']", "Main website (the needle) - also, ZONGO");
$this->click("//input[@name='type' and @value='pasteurl']");
$this->waitForPageToLoad("30000");
$this->click ("//td/form/div[contains(.,'Trainee')]/../div/input[@value='Edit Permissions']") ;
$this->waitForPageToLoad("30000");
+ $this->select("//select[contains(@name,'data[project_read]')]", "label=Visible");
$this->select("//tr/td[.='Bugs']/../td/select[contains(@name,'data[tracker]')]", "label=Read only");
$this->select("//tr/td[.='Patches']/../td/select[contains(@name,'data[tracker]')]", "label=No access");
$this->select("//tr/td[.='To Do']/../td/select[contains(@name,'data[pm]')]", "label=Read only");
$this->waitForPageToLoad("30000");
$this->click ("//td/form/div[contains(.,'Anonymous')]/../div/input[@value='Edit Permissions']") ;
$this->waitForPageToLoad("30000");
+ $this->select("//select[contains(@name,'data[project_read]')]", "label=Visible");
$this->select("//tr/td[.='Bugs']/../td/select[contains(@name,'data[tracker]')]", "label=No access");
$this->select("//tr/td[.='Patches']/../td/select[contains(@name,'data[tracker]')]", "label=No access");
$this->select("//tr/td[.='To Do']/../td/select[contains(@name,'data[pm]')]", "label=No access");
}
}
-?>