Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
JIRA: https://issues.ibexa.co/browse/IBX-4460
All PRs:
ibexa/recipes-dev#60
ibexa/docker#11
https://github.com/ibexa/version-comparison/pull/52
ibexa/admin-ui#726
#59
Tested in ibexa/commerce#227
Background
Selenium has stopped publishing new images for the Selenum 3 version:
https://hub.docker.com/r/selenium/standalone-chrome-debug/tags
The latest release is from 2021-09-21, meaning we are using a browser that is slowly becoming outdated - and because new Selenium 3 Docker images are no longer published we need to move away from Selenium 3 and upgrade.
Solutions considered:
Repository: https://gitlab.com/behat-chrome/chrome-mink-driver
It promises great results:
but I was not able to get file uploads to work with this driver - after a file was uploaded the next tests would start failing.
https://github.com/robertfausk/behat-panther-extension
https://github.com/symfony/panther/
It would be great to use it, because it's closely tied to the Symfony ecosystem - but sadly it cannot be used with remote Selenium out of the box:
symfony/panther#590
Right now the idea is that the driver is installed in the project directory, which doesn't work for us.
This is the driver we've used so far, but it's not compatible with Selenium 4.8.0:
instaclick/php-webdriver#122
and when upgrading it would be best to upgrade to the latest version already.
The fact that the issue is one month old already is not a good indicator for the future
This is the solution that I've chosen
Repositories:
https://github.com/oleg-andreyev/MinkPhpWebDriver
https://github.com/oleg-andreyev/MinkPhpWebdriverExtension
which uses https://github.com/php-webdriver/php-webdriver under the hood
I'm happy that we can switch from https://github.com/instaclick/php-webdriver/ to https://github.com/php-webdriver/php-webdriver, the latter seems more popular which should make the maintenence of test dependencies easier in the future. And it supports Selenium 4.8.0 already 🤩
Other changes
zip
anymore (also done in Selenium 4 upgrade admin-ui#726), changed FileUploadHelper to reflect that for the new driverI was able to find this post:
which mentions how to disable background throttling - and with these settings the parallelism issues are gone.