[TASK] Enable codeception and add simple mouse test
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Tests / Acceptance / Backend / LoginMouseOverCept.php
1 <?php
2 /**
3 * This tests login mouse over button.
4 */
5
6 $I = new AcceptanceTester($scenario);
7 $I->wantTo('check login functions');
8 $I->amOnPage('/typo3');
9 $I->waitForElement('#t3-username');
10 $I->wantTo('mouse over css change login button');
11
12 $bs = $I->executeInSelenium(function(\Facebook\WebDriver\Remote\RemoteWebDriver $webdriver) {
13 return $webdriver->findElement(WebDriverBy::cssSelector('#t3-login-submit'))->getCSSValue('box-shadow');
14 });
15
16 $I->moveMouseOver('#t3-login-submit');
17 $I->wait(1);
18 $bsmo = $I->executeInSelenium(function(\Facebook\WebDriver\Remote\RemoteWebDriver $webdriver) {
19 return $webdriver->findElement(WebDriverBy::cssSelector('#t3-login-submit'))->getCSSValue('box-shadow');
20 });
21 $this->assertFalse($bs == $bsmo);