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  d118657f591fa1bbba63c9ed65a1290c410a534d (commit)
      from  b46f356cbabddd562816a1af5bf4789fd3fdb31f (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=d118657f591fa1bbba63c9ed65a1290c410a534d

commit d118657f591fa1bbba63c9ed65a1290c410a534d
Author: Marc-Etienne Vargenau <[email protected]>
Date:   Fri May 5 15:44:53 2017 +0200

    Fix tests: maindiv is now a <main>

diff --git a/tests/func/20_Forums/forumsTest.php 
b/tests/func/20_Forums/forumsTest.php
index b3d8058..3efa96c 100644
--- a/tests/func/20_Forums/forumsTest.php
+++ b/tests/func/20_Forums/forumsTest.php
@@ -138,7 +138,7 @@ class CreateForum extends FForge_SeleniumTestCase
                $this->gotoProject('ProjectA');
                $this->click("link=Mailing Lists");
                $this->waitForPageToLoad("30000");
-               
$this->click("//body//div[@id='maindiv']//a[.='Administration']");
+               
$this->click("//body//main[@id='maindiv']//a[.='Administration']");
                $this->waitForPageToLoad("30000");
                $this->click("link=Add Mailing List");
                $this->waitForPageToLoad("30000");
@@ -149,7 +149,7 @@ class CreateForum extends FForge_SeleniumTestCase
                $this->assertTrue($this->isTextPresent("List Added"));
                $this->click("link=Forums");
                $this->waitForPageToLoad("30000");
-               
$this->click("//body//div[@id='maindiv']//a[.='Administration']");
+               
$this->click("//body//main[@id='maindiv']//a[.='Administration']");
                $this->waitForPageToLoad("30000");
                $this->click("link=Add Forum");
                $this->waitForPageToLoad("30000");
diff --git a/tests/func/20_Surveys/surveysTest.php 
b/tests/func/20_Surveys/surveysTest.php
index bd7472d..26a47b7 100644
--- a/tests/func/20_Surveys/surveysTest.php
+++ b/tests/func/20_Surveys/surveysTest.php
@@ -112,7 +112,7 @@ class Surveys extends FForge_SeleniumTestCase
                $this->assertTextPresent("3 (1)");
                $this->assertTextPresent("1, 2, 3, 4, 5");
                // Check that the number of votes is 1
-               $this->assertEquals("1", 
$this->getText("//div[@id='maindiv']/table/tbody/tr/td[5]"));
+               $this->assertEquals("1", 
$this->getText("//main[@id='maindiv']/table/tbody/tr/td[5]"));
 
                // Now testing by adding new questions to the survey.
                $this->clickAndWait("link=Surveys");
diff --git a/tests/func/20_Tasks/createTaskTest.php 
b/tests/func/20_Tasks/createTaskTest.php
index b08883e..490f849 100644
--- a/tests/func/20_Tasks/createTaskTest.php
+++ b/tests/func/20_Tasks/createTaskTest.php
@@ -102,7 +102,7 @@ class CreateTask extends FForge_SeleniumTestCase
                $this->type("summary", "Task1: Hello Paris");
                $this->type("details", "Details: Hello Paris");
                $this->type("hours", "10");
-               
$this->click("//body//div[@id='maindiv']/form/table/tbody/tr[9]/td/input");
+               
$this->click("//body//main[@id='maindiv']/form/table/tbody/tr[9]/td/input");
                $this->waitForPageToLoad("30000");
                $this->assertTextPresent("Task Created Successfully");
 
@@ -111,7 +111,7 @@ class CreateTask extends FForge_SeleniumTestCase
                $this->type("summary", "Task2: Hello France");
                $this->type("details", "Details: Hello France");
                $this->type("hours", "15");
-               
$this->click("//body//div[@id='maindiv']/form/table/tbody/tr[9]/td/input");
+               
$this->click("//body//main[@id='maindiv']/form/table/tbody/tr[9]/td/input");
                $this->waitForPageToLoad("30000");
                $this->assertTextPresent("Task Created Successfully");
 
@@ -120,7 +120,7 @@ class CreateTask extends FForge_SeleniumTestCase
                $this->type("summary", "Task3: Hello World");
                $this->type("details", "Details: Hello World");
                $this->type("hours", "20");
-               
$this->click("//body//div[@id='maindiv']/form/table/tbody/tr[9]/td/input");
+               
$this->click("//body//main[@id='maindiv']/form/table/tbody/tr[9]/td/input");
                $this->waitForPageToLoad("30000");
                $this->assertTrue($this->isTextPresent("Task Created 
Successfully"));
        }
diff --git a/tests/func/30_Search/searchTest.php 
b/tests/func/30_Search/searchTest.php
index 0d9d51a..88296b9 100644
--- a/tests/func/30_Search/searchTest.php
+++ b/tests/func/30_Search/searchTest.php
@@ -492,7 +492,7 @@ class Search extends FForge_SeleniumTestCase
                $this->gotoProject('ProjectA');
                $this->clickAndWait('Link=Advanced search');
                $this->click("//input[@class='checkthemall']");
-               $this->type("//div[@id='maindiv']//input[@name='words']", 
"needle");
+               $this->type("//main[@id='maindiv']//input[@name='words']", 
"needle");
                $this->clickAndWait("//input[@name='submitbutton']");
                $this->assertTrue($this->isTextPresent("Bug1"));
                $this->assertFalse($this->isTextPresent("Bug2"));
@@ -510,7 +510,7 @@ class Search extends FForge_SeleniumTestCase
                $this->gotoProject('ProjectA');
                $this->clickAndWait('Link=Advanced search');
                $this->click("//input[@class='checkthemall']");
-               $this->type("//div[@id='maindiv']//input[@name='words']", 
"zongo");
+               $this->type("//main[@id='maindiv']//input[@name='words']", 
"zongo");
                $this->clickAndWait("//input[@name='submitbutton']");
                $this->assertTrue($this->isTextPresent("Bug1"));
                $this->assertTrue($this->isTextPresent("Bug2"));
@@ -596,7 +596,7 @@ class Search extends FForge_SeleniumTestCase
                $this->gotoProject('ProjectA');
                $this->clickAndWait('Link=Advanced search');
                $this->click("//input[@class='checkthemall']");
-               $this->type("//div[@id='maindiv']//input[@name='words']", 
"zongo");
+               $this->type("//main[@id='maindiv']//input[@name='words']", 
"zongo");
                $this->clickAndWait("//input[@name='submitbutton']");
                $this->assertTrue($this->isTextPresent("Bug1"));
                $this->assertFalse($this->isTextPresent("Bug2"));
@@ -634,7 +634,7 @@ class Search extends FForge_SeleniumTestCase
                $this->click("//input[@class='checkthemall']");
                
$this->assertFalse($this->isElementPresent("//input[@name='short_pm_checkall']"));
                
$this->assertFalse($this->isElementPresent("//input[@name='short_docman_checkall']"));
-               $this->type("//div[@id='maindiv']//input[@name='words']", 
"zongo");
+               $this->type("//main[@id='maindiv']//input[@name='words']", 
"zongo");
                $this->clickAndWait("//input[@name='submitbutton']");
                $this->assertFalse($this->isTextPresent("Bug1"));
                $this->assertFalse($this->isTextPresent("Bug2"));
diff --git a/tests/func/60_PluginsBlocks/blocksTest.php 
b/tests/func/60_PluginsBlocks/blocksTest.php
index 08f31e0..5e2b1b2 100644
--- a/tests/func/60_PluginsBlocks/blocksTest.php
+++ b/tests/func/60_PluginsBlocks/blocksTest.php
@@ -78,7 +78,7 @@ class UserBlocks extends FForge_SeleniumTestCase
                $this->type("body", "This is my nice block.");
                $this->click("//input[@value='Save']");
                $this->waitForPageToLoad("30000");
-       //    
$this->click("//div[@id='maindiv']/form/table/tbody/tr[2]/td[4]/a");
+       //    
$this->click("//main[@id='maindiv']/form/table/tbody/tr[2]/td[4]/a");
        //    $this->waitForPageToLoad("30000");
        //    $this->type("body", "{boxTop Project}\nThis is the summary 
block.\n{boxBottom}");
        //    $this->click("//input[@value='Save']");

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

Summary of changes:
 tests/func/20_Forums/forumsTest.php        | 4 ++--
 tests/func/20_Surveys/surveysTest.php      | 2 +-
 tests/func/20_Tasks/createTaskTest.php     | 6 +++---
 tests/func/30_Search/searchTest.php        | 8 ++++----
 tests/func/60_PluginsBlocks/blocksTest.php | 2 +-
 5 files changed, 11 insertions(+), 11 deletions(-)


hooks/post-receive
-- 
FusionForge

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

Reply via email to