From 48e300c3007532f9a446415673f31c1d1a1452a7 Mon Sep 17 00:00:00 2001 From: Christian Sciberras Date: Sun, 1 Oct 2023 13:45:35 +0200 Subject: [PATCH] Skip tests --- tests/WebdriverClassicConfig.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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); }