33namespace Mink \WebdriverClassDriver \Tests ;
44
55use Behat \Mink \Driver \DriverInterface ;
6- use Behat \Mink \Exception \DriverException ;
76use Behat \Mink \Tests \Driver \AbstractConfig ;
87use Behat \Mink \Tests \Driver \Basic \BasicAuthTest ;
98use 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