Merge "(Bug 44192) Do not attempt to send a real e-mail in ApiAccountCreationTest"
[lhc/web/wiklou.git] / tests / selenium / suites / MediawikiCoreSmokeTestCase.php
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() {
7
8 }
9
10 public function testChangeUserPreference() {
11
12 }
13
14 /**
15 * TODO: generalize this test to be reusable for different skins
16 */
17 public function testCreateNewPageVector() {
18
19 }
20
21 /**
22 * TODO: generalize this test to be reusable for different skins
23 */
24 public function testEditExistingPageVector() {
25
26 }
27
28 /**
29 * TODO: generalize this test to be reusable for different skins
30 */
31 public function testCreateNewPageMonobook() {
32
33 }
34
35 /**
36 * TODO: generalize this test to be reusable for different skins
37 */
38 public function testEditExistingPageMonobook() {
39
40 }
41
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 );
51
52 $this->assertSeleniumHTMLContains(
53 '//h1[@class="firstHeading"]', "Wikipedia-logo-v2-de.png"
54 );
55
56 /*
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 );
62
63 // Todo: This message is localized
64 $this->assertSeleniumHTMLContains( '//div[@id="bodyContent"]/p',
65 ucfirst( $this->filename ) . '.*has been deleted.' );
66 */
67 }
68
69
70 }