Skip to content

Commit

Permalink
Merge pull request #204 from stof/skipped_tests
Browse files Browse the repository at this point in the history
Skip unsupported tests
  • Loading branch information
stof authored Jun 12, 2023
2 parents 61f18c4 + 065db3d commit 486cff9
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions tests/ZombieConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

use Behat\Mink\Driver\NodeJS\Server\ZombieServer;
use Behat\Mink\Driver\ZombieDriver;
use Behat\Mink\Tests\Driver\Basic\IFrameTest;
use Behat\Mink\Tests\Driver\Basic\ScreenshotTest;
use Behat\Mink\Tests\Driver\Js\JavascriptTest;
use Behat\Mink\Tests\Driver\Js\WindowTest;

class ZombieConfig extends AbstractConfig
{
Expand Down Expand Up @@ -57,6 +61,29 @@ public function skipMessage($testCase, $test)
return 'Zombie does not trigger the keyup event when writing a value in a text input to simulate keyboard';
}

if (IFrameTest::class === $testCase) {
return 'iFrame management is not supported.';
}

if (ScreenshotTest::class === $testCase) {
return 'Screenshots are not supported.';
}

if (JavascriptTest::class === $testCase && 'testDragDrop' === $test) {
return 'Drag & drop is not supported.';
}

if (WindowTest::class === $testCase && \in_array($test, array(
'testResizeWindow',
'testWindowMaximize',
), true)) {
return 'Window resizing is not supported.';
}

if (WindowTest::class === $testCase && 'testGetWindowNames' === $test) {
return 'Window names are not supported.';
}

return parent::skipMessage($testCase, $test);
}
}

0 comments on commit 486cff9

Please sign in to comment.