Localisation updates from http://translatewiki.net.
[mediawiki.git] / tests / selenium / suites / MediawikiCoreSmokeTestCase.php
blob4491afd282b263e4fde8db21db6002b01d6dfbcb
1 <?php
2 /*
3 * Stub of tests be need as part of the hack-a-ton
4 */
5 class MediawikiCoreSmokeTestCase extends SeleniumTestCase {
6 public function testUserLogin() {
10 public function testChangeUserPreference() {
14 /**
15 * TODO: generalize this test to be reusable for different skins
17 public function testCreateNewPageVector() {
21 /**
22 * TODO: generalize this test to be reusable for different skins
24 public function testEditExistingPageVector() {
28 /**
29 * TODO: generalize this test to be reusable for different skins
31 public function testCreateNewPageMonobook() {
35 /**
36 * TODO: generalize this test to be reusable for different skins
38 public function testEditExistingPageMonobook() {
42 public function testImageUpload() {
43 $this->login();
44 $this->open( $this->getUrl() .
45 '/index.php?title=Special:Upload' );
46 $this->type( 'wpUploadFile', __DIR__ .
47 "\\..\\data\\Wikipedia-logo-v2-de.png" );
48 $this->check( 'wpIgnoreWarning' );
49 $this->click( 'wpUpload' );
50 $this->waitForPageToLoad( 30000 );
52 $this->assertSeleniumHTMLContains(
53 '//h1[@class="firstHeading"]', "Wikipedia-logo-v2-de.png"
57 $this->open( $this->getUrl() . '/index.php?title=Image:'
58 . ucfirst( $this->filename ) . '&action=delete' );
59 $this->type( 'wpReason', 'Remove test file' );
60 $this->click( 'mw-filedelete-submit' );
61 $this->waitForPageToLoad( 10000 );
63 // Todo: This message is localized
64 $this->assertSeleniumHTMLContains( '//div[@id="bodyContent"]/p',
65 ucfirst( $this->filename ) . '.*has been deleted.' );