* Integrated the selenium tests into MediaWiki properly, and removed the insecure...
[lhc/web/wiklou.git] / maintenance / tests / selenium / SimpleSeleniumTest.php
1 <?php
2
3 class SimpleSeleniumTest extends SeleniumTestCase
4 {
5 public $name = "Basic selenium test";
6
7 public function runTest()
8 {
9 $this->open( Selenium::getBaseUrl() . '/index.php?title=Selenium&action=edit' );
10 $this->type( "wpTextbox1", "This is a basic test" );
11 $this->click( "wpPreview" );
12 $this->waitForPageToLoad( 10000 );
13
14 // check result
15 $source = $this->getText( "//div[@id='wikiPreview']/p" );
16 $correct = strstr( $source, "This is a basic test" );
17 $this->assertEquals( $correct, true );
18
19 }
20
21 }