@@ -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