Skip to content

Commit defcdc3

Browse files
committed
Skip tests
1 parent 90959b2 commit defcdc3

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

tests/WebdriverClassicConfig.php

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespace Mink\WebdriverClassDriver\Tests;
44

55
use Behat\Mink\Driver\DriverInterface;
6-
use Behat\Mink\Exception\DriverException;
76
use Behat\Mink\Tests\Driver\AbstractConfig;
87
use Behat\Mink\Tests\Driver\Basic\BasicAuthTest;
98
use Behat\Mink\Tests\Driver\Basic\HeaderTest;
@@ -41,7 +40,7 @@ public function mapRemoteFilePath($file): string
4140
public function skipMessage($testCase, $test): ?string
4241
{
4342
switch (true) {
44-
case $testCase === WindowTest::class && $test === 'testWindowMaximize' && $this->isXvfb():
43+
case [$testCase, $test] === [WindowTest::class, 'testWindowMaximize'] && $this->isXvfb():
4544
return 'Maximizing the window does not work when running the browser in Xvfb.';
4645

4746
case $testCase === BasicAuthTest::class:
@@ -53,9 +52,16 @@ public function skipMessage($testCase, $test): ?string
5352
case $testCase === StatusCodeTest::class:
5453
return 'Checking status code is not supported.';
5554

56-
case $testCase === EventsTest::class && $test === 'testKeyboardEvents' && $this->isOldChrome():
55+
case [$testCase, $test] === [EventsTest::class, 'testKeyboardEvents'] && $this->isOldChrome():
5756
return 'Old Chrome does not allow triggering events.';
5857

58+
case [$testCase, $test] === [EventsTest::class, 'testBlur']:
59+
case [$testCase, $test] === [EventsTest::class, 'testFocus']:
60+
return 'Focus/blur are not supported anymore.';
61+
62+
case [$testCase, $test] === [EventsTest::class, 'testKeyboardEvents']:
63+
return 'Keyboard events are currently not supported.';
64+
5965
default:
6066
return parent::skipMessage($testCase, $test);
6167
}

0 commit comments

Comments
 (0)