Skip to content
This repository was archived by the owner on Jun 12, 2023. It is now read-only.

Commit 420c289

Browse files
authored
Merge pull request #94 from stof/skipped_tests
Skip unsupported tests
2 parents a60fba4 + 84b804a commit 420c289

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tests/GoutteConfig.php

+15
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
namespace Behat\Mink\Tests\Driver;
44

55
use Behat\Mink\Driver\GoutteDriver;
6+
use Behat\Mink\Tests\Driver\Basic\IFrameTest;
7+
use Behat\Mink\Tests\Driver\Basic\ScreenshotTest;
68

79
class GoutteConfig extends AbstractConfig
810
{
@@ -19,6 +21,19 @@ public function createDriver()
1921
return new GoutteDriver();
2022
}
2123

24+
public function skipMessage($testCase, $test): ?string
25+
{
26+
if ($testCase === IFrameTest::class) {
27+
return 'iFrames management is not supported.';
28+
}
29+
30+
if ($testCase === ScreenshotTest::class) {
31+
return 'Screenshots are not supported.';
32+
}
33+
34+
return parent::skipMessage($testCase, $test);
35+
}
36+
2237
protected function supportsJs()
2338
{
2439
return false;

0 commit comments

Comments
 (0)