diff --git a/tests/WebdriverClassicConfig.php b/tests/WebdriverClassicConfig.php index ce74314..41be414 100644 --- a/tests/WebdriverClassicConfig.php +++ b/tests/WebdriverClassicConfig.php @@ -40,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: @@ -52,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); }