<?php
-/*
+/**
* Copyright 2011, Roland Mas
+ * Copyright 2013, Franck Villaume - TrivialDev
*
* This file is part of FusionForge.
*
$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("//input[@name='description']", "Jenkins buildbot - also, ZONGO");
$this->click("//input[@name='type' and @value='pasteurl']");
$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");