diff --git a/tests/WebdriverClassicConfig.php b/tests/WebdriverClassicConfig.php index c59ebfc..3f88cf1 100644 --- a/tests/WebdriverClassicConfig.php +++ b/tests/WebdriverClassicConfig.php @@ -3,7 +3,6 @@ namespace Mink\WebdriverClassDriver\Tests; use Behat\Mink\Driver\DriverInterface; -use Behat\Mink\Exception\DriverException; use Behat\Mink\Tests\Driver\AbstractConfig; use Behat\Mink\Tests\Driver\Basic\BasicAuthTest; use Behat\Mink\Tests\Driver\Basic\HeaderTest; @@ -41,7 +40,7 @@ public function mapRemoteFilePath($file): string public function skipMessage($testCase, $test): ?string { switch (true) { - case $testCase === WindowTest::class && $test === 'testWindowMaximize' && $this->isXvfb(): + case [$testCase, $test] === [WindowTest::class, 'testWindowMaximize'] && $this->isXvfb(): return 'Maximizing the window does not work when running the browser in Xvfb.'; case $testCase === BasicAuthTest::class: @@ -53,9 +52,16 @@ public function skipMessage($testCase, $test): ?string case $testCase === StatusCodeTest::class: return 'Checking status code is not supported.'; - case $testCase === EventsTest::class && $test === 'testKeyboardEvents' && $this->isOldChrome(): + case [$testCase, $test] === [EventsTest::class, 'testKeyboardEvents'] && $this->isOldChrome(): return 'Old Chrome does not allow triggering events.'; + case [$testCase, $test] === [EventsTest::class, 'testBlur']: + case [$testCase, $test] === [EventsTest::class, 'testFocus']: + return 'Focus/blur are not supported anymore.'; + + case [$testCase, $test] === [EventsTest::class, 'testKeyboardEvents']: + return 'Keyboard events are currently not supported.'; + default: return parent::skipMessage($testCase, $test); }