Index: branches/MwEmbedStandAlone/tests/selenium/NewSeleniumTest.php |
— | — | @@ -16,16 +16,16 @@ |
17 | 17 | public function runTest() |
18 | 18 | { |
19 | 19 | global $wgSeleniumTestsWikiUrl; |
20 | | - $this->open($wgSeleniumTestsWikiUrl.'/index.php?title=Selenium&action=edit'); |
21 | | - $this->type("wpTextbox1", "This is a basic test"); |
22 | | - $this->click("wpPreview"); |
| 20 | + $this->open($wgSeleniumTestsWikiUrl.'/tests/mwEmbed_Demo.html'); |
| 21 | + // $this->type("wpTextbox1", "This is a basic test"); |
| 22 | + // $this->click("wpPreview"); |
23 | 23 | $this->waitForPageToLoad(10000); |
24 | 24 | |
25 | 25 | // check result |
26 | | - $source = $this->getText("//div[@id='wikiPreview']/p"); |
27 | | - $correct = strstr($source, "This is a basic test"); |
28 | | - $this->assertEquals($correct, true); |
| 26 | + // $source = $this->getText("//div[@id='wikiPreview']/p"); |
| 27 | + //$correct = strstr($source, "This is a basic test"); |
| 28 | + //$this->assertEquals($correct, true); |
29 | 29 | |
30 | 30 | } |
31 | 31 | |
32 | | -} |
\ No newline at end of file |
| 32 | +} |
Index: branches/MwEmbedStandAlone/tests/selenium/LocalSeleniumSettings.php.sample |
— | — | @@ -17,10 +17,10 @@ |
18 | 18 | #set_include_path( get_include_path() . PATH_SEPARATOR . 'PEAR' ); |
19 | 19 | |
20 | 20 | // Hostname of selenium server |
21 | | -$wgSeleniumTestsSeleniumHost = 'localhost'; |
| 21 | +$wgSeleniumTestsSeleniumHost = 'grid.tesla.usability.wikimedia.org'; |
22 | 22 | |
23 | 23 | // URL of the wiki to be tested. Consult web server configuration. |
24 | | -$wgSeleniumTestsWikiUrl = 'http://localhost'; |
| 24 | +$wgSeleniumTestsWikiUrl = 'http://prototype.wikimedia.org/mwe-gadget-testing'; |
25 | 25 | |
26 | 26 | // Port used by selenium server (optional - default is 4444) |
27 | 27 | $wgSeleniumServerPort = 4444; |
— | — | @@ -48,4 +48,4 @@ |
49 | 49 | $wgSeleniumTestIncludes = array( |
50 | 50 | 'selenium/SimpleSeleniumTest.php' |
51 | 51 | ); |
52 | | -?> |
\ No newline at end of file |
| 52 | +?> |