From 065db3de2c815dc8baa264f17bafce31ae4fee72 Mon Sep 17 00:00:00 2001 From: Christophe Coevoet Date: Mon, 12 Jun 2023 13:37:12 +0200 Subject: [PATCH] Skip unsupported tests --- tests/ZombieConfig.php | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/tests/ZombieConfig.php b/tests/ZombieConfig.php index 46a9316..3bc0c33 100644 --- a/tests/ZombieConfig.php +++ b/tests/ZombieConfig.php @@ -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 { @@ -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); } }