Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip "testDragDropOntoHiddenItself" test on Selenium 2 + Firefox #49

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions tests/WebdriverClassicConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use Behat\Mink\Tests\Driver\Basic\HeaderTest;
use Behat\Mink\Tests\Driver\Basic\StatusCodeTest;
use Behat\Mink\Tests\Driver\Js\EventsTest;
use Behat\Mink\Tests\Driver\Js\JavascriptTest;
use Behat\Mink\Tests\Driver\Js\WindowTest;
use Mink\WebdriverClassicDriver\WebdriverClassicDriver;

Expand Down Expand Up @@ -58,6 +59,21 @@
case $testCase === EventsTest::class && $test === 'testKeyboardEvents' && $this->isOldChrome():
return 'Old Chrome does not allow triggering events.';

case $testCase === TimeoutTest::class && $this->getBrowserName() !== 'firefox':

Check failure on line 62 in tests/WebdriverClassicConfig.php

View workflow job for this annotation

GitHub Actions / Static analysis

Class Mink\WebdriverClassicDriver\Tests\TimeoutTest not found.
if ($test === 'testDeprecatedShortPageLoadTimeoutThrowsException' && $this->isXvfb()) {
return 'Attempt to set page load timeout several times causes a freeze in this browser.';
}
// no break

case [JavascriptTest::class, 'testDragDropOntoHiddenItself'] === [$testCase, $test]:
$seleniumVersion = $_SERVER['SELENIUM_VERSION'] ?? null;
$browser = $_SERVER['WEB_FIXTURES_BROWSER'] ?? null;

if ($seleniumVersion && version_compare($seleniumVersion, '3.0.0', '<') && $browser === 'firefox') {
return 'The Firefox browser compatible with Selenium Server 2.x doesn\'t fully implement drag-n-drop support.';
}
// no break

default:
return parent::skipMessage($testCase, $test);
}
Expand Down
Loading