3 * Stub of tests be need as part of the hack-a-ton
5 class MediawikiCoreSmokeTestCase
extends SeleniumTestCase
{
6 public function testUserLogin() {
10 public function testChangeUserPreference() {
15 * TODO: generalize this test to be reusable for different skins
17 public function testCreateNewPageVector() {
22 * TODO: generalize this test to be reusable for different skins
24 public function testEditExistingPageVector() {
29 * TODO: generalize this test to be reusable for different skins
31 public function testCreateNewPageMonobook() {
36 * TODO: generalize this test to be reusable for different skins
38 public function testEditExistingPageMonobook() {
42 public function testImageUpload() {
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.' );