minkphp / MinkSelenium2Driver

Selenium2 (webdriver) driver for Mink framework
MIT License
507 stars 163 forks source link

Tests failing on ppc64le architecture for v1.6.0 #350

Open anup-kodlekere opened 2 years ago

anup-kodlekere commented 2 years ago

Hi,

In my attempt to port this package to ppc64le architecture, I have come across a few failures. Attaching the logs I get after running the tests:

PHPUnit 8.5.26 #StandWithUkraine

Runtime:       PHP 7.2.24
Configuration: /MinkSelenium2Driver/phpunit.xml.dist

Testing Driver test suite
..F....SSSSS...................................................  63 / 177 ( 35%)
.......SSSSE....S...............................S.............. 126 / 177 ( 71%)
..................F............................E..F             177 / 177 (100%)

Time: 3.23 minutes, Memory: 10.00 MB

There were 2 errors:

1) Behat\Mink\Tests\Driver\Basic\IFrameTest::testIFrame
WebDriver\Exception\UnknownError: data did not match any variant of untagged enum FrameId at line 3 column 1
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:53'
System info: host: '5dfaf1b6ce14', ip: '10.0.2.100', os.name: 'Linux', os.arch: 'ppc64le', os.version: '4.18.0-348.el8.ppc64le', java.version: '11.0.14.1'
Driver info: driver.version: unknown

/MinkSelenium2Driver/vendor/instaclick/php-webdriver/lib/WebDriver/Exception.php:156
/MinkSelenium2Driver/vendor/instaclick/php-webdriver/lib/WebDriver/AbstractWebDriver.php:171
/MinkSelenium2Driver/vendor/instaclick/php-webdriver/lib/WebDriver/Session.php:290
/MinkSelenium2Driver/src/Selenium2Driver.php:426
/MinkSelenium2Driver/vendor/behat/mink/src/Session.php:321
/MinkSelenium2Driver/vendor/mink/driver-testsuite/tests/Basic/IFrameTest.php:17
phpvfscomposer:///MinkSelenium2Driver/vendor/phpunit/phpunit/phpunit:97

2) Behat\Mink\Tests\Driver\Js\WindowTest::testWindow
WebDriver\Exception\UnknownError: missing field `handle` at line 3 column 1
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:53'
System info: host: '5dfaf1b6ce14', ip: '10.0.2.100', os.name: 'Linux', os.arch: 'ppc64le', os.version: '4.18.0-348.el8.ppc64le', java.version: '11.0.14.1'
Driver info: driver.version: unknown

/MinkSelenium2Driver/vendor/instaclick/php-webdriver/lib/WebDriver/Exception.php:156
/MinkSelenium2Driver/vendor/instaclick/php-webdriver/lib/WebDriver/AbstractWebDriver.php:171
/MinkSelenium2Driver/vendor/instaclick/php-webdriver/lib/WebDriver/Session.php:273
/MinkSelenium2Driver/src/Selenium2Driver.php:418
/MinkSelenium2Driver/vendor/behat/mink/src/Session.php:311
/MinkSelenium2Driver/vendor/mink/driver-testsuite/tests/Js/WindowTest.php:17
phpvfscomposer:///MinkSelenium2Driver/vendor/phpunit/phpunit/phpunit:97

--

There were 3 failures:

1) Behat\Mink\Tests\Driver\Custom\TimeoutTest::testInvalidTimeoutSettingThrowsException
Failed asserting that exception of type "\Behat\Mink\Exception\DriverException" is thrown.

phpvfscomposer:///MinkSelenium2Driver/vendor/phpunit/phpunit/phpunit:97

2) Behat\Mink\Tests\Driver\Js\EventsTest::testRightClick
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'right clicked'
+'single clicked'

/MinkSelenium2Driver/vendor/mink/driver-testsuite/tests/Js/EventsTest.php:45
phpvfscomposer:///MinkSelenium2Driver/vendor/phpunit/phpunit/phpunit:97

3) Behat\Mink\Tests\Driver\Js\WindowTest::testWindowMaximize
Failed asserting that 720 is equal to 100 or is less than 100.

/MinkSelenium2Driver/vendor/mink/driver-testsuite/tests/Js/WindowTest.php:95
phpvfscomposer:///MinkSelenium2Driver/vendor/phpunit/phpunit/phpunit:97

--

Here's the steps I followed to reach to this error.

Some additional info:

OS : Red Hat Enterprise Linux 8.5 Arch : ppc64le Selenium : 3.141.59 Gecko Driver : 0.30.0 Firefox : 91

I know that the tests here are using Firefox 47, Selenium 2.53.1 and Gecko Driver 0.10.0 by going through the github actions page. However Firefox 47 isn't available on ppc64le, which is why I decided to go with a newer version of Selenium. Tried this on an x86_64 VM and they work fine. Not sure if I'm missing anything here, would like some help.

anup-kodlekere commented 2 years ago

Hey @stof, do you have any pointers on this?