Skip to content

Commit 48e300c

Browse files
committed
Skip tests
1 parent 6ba6cc1 commit 48e300c

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

tests/WebdriverClassicConfig.php

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function mapRemoteFilePath($file): string
4040
public function skipMessage($testCase, $test): ?string
4141
{
4242
switch (true) {
43-
case $testCase === WindowTest::class && $test === 'testWindowMaximize' && $this->isXvfb():
43+
case [$testCase, $test] === [WindowTest::class, 'testWindowMaximize'] && $this->isXvfb():
4444
return 'Maximizing the window does not work when running the browser in Xvfb.';
4545

4646
case $testCase === BasicAuthTest::class:
@@ -52,9 +52,16 @@ public function skipMessage($testCase, $test): ?string
5252
case $testCase === StatusCodeTest::class:
5353
return 'Checking status code is not supported.';
5454

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

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+
5865
default:
5966
return parent::skipMessage($testCase, $test);
6067
}

0 commit comments

Comments
 (0)