From: Roland Mas Date: Sun, 23 Sep 2012 09:56:01 +0000 (+0000) Subject: Make moinmoinwiki testsuite slightly more comprehensive X-Git-Tag: v5.3-rc1~2086 X-Git-Url: https://scm.fusionforge.org/anonscm/gitweb?p=fusionforge%2Ffusionforge.git;a=commitdiff_plain;h=9d0c7fc1617d9d44f04fb484fc073c7eb7c0b477;hp=f1cf4884eb914e49e08e8d66c0b4e72458ed5223;ds=sidebyside Make moinmoinwiki testsuite slightly more comprehensive --- diff --git a/tests/func/PluginsMoinMoin/moinmoinTest.php b/tests/func/PluginsMoinMoin/moinmoinTest.php index 35f8cabb05..2a4f21b784 100644 --- a/tests/func/PluginsMoinMoin/moinmoinTest.php +++ b/tests/func/PluginsMoinMoin/moinmoinTest.php @@ -38,21 +38,28 @@ class PluginMoinMoin extends FForge_SeleniumTestCase $this->clickAndWait("submit"); $this->assertTrue($this->isTextPresent("Project information updated")); - // $this->gotoProject('ProjectA'); - // $this->click("link=MoinMoinWiki"); - // sleep(5); // MoinMoinWiki has no

element - // $this->assertTrue($this->isTextPresent("ConfigurationError")); - $this->cron_for_plugin("create-wikis.php", "moinmoin"); sleep (5); $this->gotoProject('ProjectA'); $this->click("link=MoinMoinWiki"); - sleep(5); // MoinMoinWiki has no

element + sleep(10); // MoinMoinWiki has no

element, so no waitForPageToLoad() $this->assertFalse($this->isTextPresent("ConfigurationError")); $this->assertFalse($this->isTextPresent("Wiki not created yet")); - // $this->click("link=Create New Page"); + $this->click("link=Create New Page"); + sleep(5); // Grmf. + + $this->assertFalse($this->isTextPresent("You are not allowed")); + $this->type("//textarea[@id='editor-textarea']", "Pardon me, boy +Is that the Chattanooga choo choo?"); + $this->click("//input[@name='button_save']"); + sleep(5); // Grmf. + + $this->gotoProject('ProjectA'); + $this->click("link=MoinMoinWiki"); + sleep(5); // Grmf. + $this->assertTrue($this->isTextPresent("Chattanooga")); } }