This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".

The branch, master has been updated
       via  34958e79c8cf340c90f942985fea8b9de92d1474 (commit)
      from  0ac4dde98f27581623c48f02e1be26454a36a464 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://scm.fusionforge.org/anonscm/gitweb/?p=fusionforge/fusionforge.git;a=commitdiff;h=34958e79c8cf340c90f942985fea8b9de92d1474

commit 34958e79c8cf340c90f942985fea8b9de92d1474
Author: Franck Villaume <[email protected]>
Date:   Wed Dec 14 18:58:08 2016 +0100

    new test: docman multiple version of document

diff --git a/tests/func/20_Docs/createDocURLTest.php 
b/tests/func/20_Docs/createDocURLTest.php
index 301fd0b..81542a3 100644
--- a/tests/func/20_Docs/createDocURLTest.php
+++ b/tests/func/20_Docs/createDocURLTest.php
@@ -137,4 +137,36 @@ class CreateDocURL extends FForge_SeleniumTestCase {
                $this->assertTextPresent("updated successfully");
                $this->assertTextPresent("Pending files");
        }
+
+       function testAddNewCurrentVersion() {
+               $this->loadAndCacheFixture();
+               $this->switchUser(FORGE_ADMIN_USERNAME);
+
+               $this->gotoProject('ProjectA');
+               $this->clickAndWait("link=Docs");
+               $this->clickAndWait("addItemDocmanMenu");
+               // 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", "My document");
+               $this->type("//textarea[@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->clickAndWait("listFileDocmanMenu");
+               $this->clickAndWait("link=Uncategorized Submissions");
+               $this->click("css=img[alt='editdocument']");
+               $this->pause("10000");
+               $this->assertTextPresent("1 (x)");
+               $this->click("id=doc_version_addbutton");
+               $this->type("id=title", "My new document");
+               $this->type("id=description", "My new description");
+               $this->click("id=current_version");
+               $this->click("id=editButtonUrl");
+               $this->type("id=editFileurl", "http://google.fr";);
+               $this->clickAndWait("xpath=(//button[@type='button'])[3]");
+               $this->assertTextPresent("updated successfully");
+               $this->assertTextPresent("google.fr");
+       }
 }

-----------------------------------------------------------------------

Summary of changes:
 tests/func/20_Docs/createDocURLTest.php | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)


hooks/post-receive
-- 
FusionForge

_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits

Reply via email to