Remove the MaxFileSize HTML generator
[phpmyadmin.git] / test / selenium / LoginTest.php
blob488fbd806a2d3f1fb41ece0bf03d0cae821c545b
1 <?php
2 /**
3 * Selenium TestCase for login related tests
4 */
5 declare(strict_types=1);
7 namespace PhpMyAdmin\Tests\Selenium;
9 /**
10 * LoginTest class
12 * @group selenium
14 class LoginTest extends TestBase
16 protected function setUp(): void
18 parent::setUp();
19 $this->logOutIfLoggedIn();
22 /**
23 * Test for successful login
25 * @return void
27 * @group large
29 public function testSuccessfulLogin()
31 $this->login();
32 $this->waitForElement('xpath', '//*[@id="server-breadcrumb"]');
33 $this->assertTrue($this->isSuccessLogin());
34 $this->logOutIfLoggedIn();
37 /**
38 * Test for unsuccessful login
40 * @return void
42 * @group large
44 public function testLoginWithWrongPassword()
46 $this->login('Admin', 'Admin');
47 $this->waitForElement('cssSelector', 'alert-danger');
48 $this->assertTrue($this->isUnsuccessLogin());