[Fusionforge-commits] FusionForge branch master updated. 6.0.4-1209-gbd226a4

Franck Villaume nerville at libremir.placard.fr.eu.org
Sat Dec 3 15:17:44 CET 2016


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  bd226a418ae2764521f711a4f2570c2c1fd11a9e (commit)
      from  6ce0f31ea2d4c07447ce21172dbd6a86a0b57ac0 (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=bd226a418ae2764521f711a4f2570c2c1fd11a9e

commit bd226a418ae2764521f711a4f2570c2c1fd11a9e
Author: Franck Villaume <franck.villaume at trivialdev.com>
Date:   Sat Dec 3 15:17:18 2016 +0100

    new test: display version modal window of a document

diff --git a/tests/func/20_Docs/createDocURLTest.php b/tests/func/20_Docs/createDocURLTest.php
index 3033567..3f7c45a 100644
--- a/tests/func/20_Docs/createDocURLTest.php
+++ b/tests/func/20_Docs/createDocURLTest.php
@@ -2,7 +2,7 @@
 /**
  * Copyright (C) 2010-2013 Alain Peyrat - Alcatel-Lucent
  * Copyright 2010-2011, Franck Villaume - Capgemini
- * Copyright 2013,2015 Franck Villaume - TrivialDev
+ * Copyright 2013,2015-2016, Franck Villaume - TrivialDev
  * Copyright (C) 2015  Inria (Sylvain Beucler)
  *
  * This file is part of FusionForge.
@@ -46,12 +46,10 @@
 
 require_once dirname(dirname(__FILE__)).'/SeleniumForge.php';
 
-class CreateDocURL extends FForge_SeleniumTestCase
-{
+class CreateDocURL extends FForge_SeleniumTestCase {
 	public $fixture = 'projecta';
 
-	function testCreateDocURL()
-	{
+	function testCreateDocURL() {
 		$this->loadAndCacheFixture();
 		$this->switchUser(FORGE_ADMIN_USERNAME);
 
@@ -84,8 +82,7 @@ class CreateDocURL extends FForge_SeleniumTestCase
 		$this->assertTextPresent("Documents folder docdirectory moved to trash successfully");
 	}
 
-	function testCreateMultipleDocs()
-	{
+	function testCreateMultipleDocs() {
 		$this->loadAndCacheFixture();
 		$this->switchUser(FORGE_ADMIN_USERNAME);
 
@@ -97,6 +94,7 @@ class CreateDocURL extends FForge_SeleniumTestCase
 		$this->click("id=tab-new-document");
 		$this->type("title", "My document");
 		$this->type("//textarea[@name='description']", "My Description");
+		$this->type("//textarea[@name='vcomment']", "My Comment");
 		$this->click("//input[@name='type' and @value='pasteurl']");
 		$this->type("file_url", URL."/terms.php");
 		$this->clickAndWait("//input[@name='submit' and @value='Submit Information']");
@@ -112,4 +110,27 @@ class CreateDocURL extends FForge_SeleniumTestCase
 		$this->clickAndWait("//input[@name='submit' and @value='Submit Information']");
 		$this->assertTextPresent("Document already published in this folder");
 	}
+
+	function testDisplayVersionDoc() {
+		$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->click("id=versiontab");
+		$this->assertTextPresent("Versions");
+	}
 }

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

Summary of changes:
 tests/func/20_Docs/createDocURLTest.php | 35 ++++++++++++++++++++++++++-------
 1 file changed, 28 insertions(+), 7 deletions(-)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list