<?php
-/*
+/**
* Copyright 2011, Roland Mas
+ * Copyright 2013, Franck Villaume - TrivialDev
*
* This file is part of FusionForge.
*
$this->type("body", "ninetynine of them on Charlie's wall - also, ZONGO");
$this->clickAndWait("submit");
$this->clickAndWait("link=Message1 in a bottle");
- $this->clickAndWait("link=[ reply ]");
+ $this->clickAndWait("link=[ Reply ]");
$this->type("subject", "Message2 in a bottle");
$this->type("body", "ninetyeight of them in Charlie's fridge - also, ZONGO");
$this->clickAndWait("submit");
$this->clickAndWait("link=Message1 in a bottle");
- $this->clickAndWait("link=[ reply ]");
+ $this->clickAndWait("link=[ Reply ]");
$this->type("subject", "Message3 in a bottle");
$this->type("body", "and yet another needle for the forums - also, ZONGO");
$this->clickAndWait("submit");
$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[.='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->select("//tr/td[.='Next Release']/../td/select[contains(@name,'data[pm]')]", "label=No access");
+ $this->select("//tr/td[.='Next Release']/../td/select[contains(@name,'data[pm]')]", "label=No Access");
$this->select("//tr/td[.='open-discussion']/../td/select[contains(@name,'data[forum]')]", "label=Read only");
- $this->select("//tr/td[.='developers-discussion']/../td/select[contains(@name,'data[forum]')]", "label=No access");
+ $this->select("//tr/td[.='developers-discussion']/../td/select[contains(@name,'data[forum]')]", "label=No Access");
$this->select("//select[contains(@name,'data[docman]')]", "label=Read only");
$this->click ("//input[@value='Submit']") ;
$this->waitForPageToLoad("30000");
$this->waitForPageToLoad("30000");
$this->click ("//td/form/div[contains(.,'Anonymous')]/../div/input[@value='Edit Permissions']") ;
$this->waitForPageToLoad("30000");
- $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");
- $this->select("//tr/td[.='Next Release']/../td/select[contains(@name,'data[pm]')]", "label=No access");
- $this->select("//tr/td[.='open-discussion']/../td/select[contains(@name,'data[forum]')]", "label=No access");
- $this->select("//tr/td[.='developers-discussion']/../td/select[contains(@name,'data[forum]')]", "label=No access");
- $this->select("//select[contains(@name,'data[docman]')]", "label=No access");
+ $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");
+ $this->select("//tr/td[.='Next Release']/../td/select[contains(@name,'data[pm]')]", "label=No Access");
+ $this->select("//tr/td[.='open-discussion']/../td/select[contains(@name,'data[forum]')]", "label=No Access");
+ $this->select("//tr/td[.='developers-discussion']/../td/select[contains(@name,'data[forum]')]", "label=No Access");
+ $this->select("//select[contains(@name,'data[docman]')]", "label=No Access");
$this->click ("//input[@value='Submit']") ;
$this->waitForPageToLoad("30000");