+
+ function testCreateMultipleDocs()
+ {
+ $this->init();
+ $this->gotoProject('ProjectA');
+ $this->clickAndWait("link=Docs");
+ $this->clickAndWait("addItemDocmanMenu");
+ $this->type("title", "My document");
+ $this->type("//input[@name='description']", "My Description");
+ $this->click("//input[@name='type' and @value='pasteurl']");
+ $this->type("file_url", URL."/terms.php");
+ $this->clickAndWait("//input[@name='submit' and @value='Submit Information']");
+ $this->assertTextPresent("Document ".URL."/terms.php submitted successfully");
+
+ $this->gotoProject('ProjectA');
+ $this->clickAndWait("link=Docs");
+ $this->clickAndWait("addItemDocmanMenu");
+ $this->type("title", " My document ");
+ $this->type("//input[@name='description']", "My Description");
+ $this->click("//input[@name='type' and @value='pasteurl']");
+ $this->type("file_url", URL."/terms.php");
+ $this->clickAndWait("//input[@name='submit' and @value='Submit Information']");
+ $this->assertTextPresent("Document already published in this folder");
+ }