mirror of
https://github.com/symfony/recipes.git
synced 2026-09-17 18:16:34 +03:00
Following https://github.com/symfony/panther/issues/675 and https://github.com/symfony/ux/pull/2873, passing `PANTHER_DEVTOOLS=0` (it is enabled by default) fixes issues when using Chrome 137+. I agree this is not the best fix, surely something must be fixed upsteam, but for the moment, disabling devtools allows Panther to be usable again in some behaviors.
63 lines
2.5 KiB
JSON
63 lines
2.5 KiB
JSON
{
|
|
"conflict": {
|
|
"symfony/flex": "<1.23.0 || >=2.0.0,<2.8.0"
|
|
},
|
|
"dockerfile": [
|
|
"# Chromium and ChromeDriver",
|
|
"ENV PANTHER_NO_SANDBOX=1",
|
|
"# Not mandatory, but recommended",
|
|
"ENV PANTHER_CHROME_ARGUMENTS='--disable-dev-shm-usage'",
|
|
"# hadolint ignore=DL3008",
|
|
"RUN apt-get update && apt-get install -y --no-install-recommends chromium chromium-driver && rm -rf /var/lib/apt/lists/*",
|
|
"",
|
|
"# Firefox and geckodriver",
|
|
"#ARG GECKODRIVER_VERSION=0.34.0",
|
|
"# hadolint ignore=DL3008",
|
|
"#RUN apt-get update && apt-get install -y --no-install-recommends firefox && rm -rf /var/lib/apt/lists/*",
|
|
"#RUN wget -q https://github.com/mozilla/geckodriver/releases/download/v$GECKODRIVER_VERSION/geckodriver-v$GECKODRIVER_VERSION-aarch64.tar.gz; \\",
|
|
"#\ttar -zxf geckodriver-v$GECKODRIVER_VERSION-aarch64.tar.gz -C /usr/bin; \\",
|
|
"#\trm geckodriver-v$GECKODRIVER_VERSION-aarch64.tar.gz"
|
|
],
|
|
"dotenv": {
|
|
"test": {
|
|
"PANTHER_APP_ENV": "panther",
|
|
"PANTHER_ERROR_SCREENSHOT_DIR": "./var/error-screenshots",
|
|
"PANTHER_DEVTOOLS": "0"
|
|
}
|
|
},
|
|
"add-lines": [
|
|
{
|
|
"file": "phpunit.xml.dist",
|
|
"content": " <extension class=\"Symfony\\Component\\Panther\\ServerExtension\" />",
|
|
"position": "after_target",
|
|
"target": "<extensions>",
|
|
"requires": "symfony/phpunit-bridge:<7.3",
|
|
"warn_if_missing": false
|
|
},
|
|
{
|
|
"file": "phpunit.dist.xml",
|
|
"content": " <bootstrap class=\"Symfony\\Component\\Panther\\ServerExtension\" />",
|
|
"position": "after_target",
|
|
"target": "<extensions>",
|
|
"requires": "symfony/phpunit-bridge:<7.3",
|
|
"warn_if_missing": false
|
|
},
|
|
{
|
|
"file": "phpunit.xml.dist",
|
|
"content": " <extension class=\"Symfony\\Component\\Panther\\ServerExtension\" />",
|
|
"position": "after_target",
|
|
"target": "<extensions>",
|
|
"requires": "phpunit/phpunit:<10",
|
|
"warn_if_missing": false
|
|
},
|
|
{
|
|
"file": "phpunit.dist.xml",
|
|
"content": " <bootstrap class=\"Symfony\\Component\\Panther\\ServerExtension\" />",
|
|
"position": "after_target",
|
|
"target": "<extensions>",
|
|
"requires": "phpunit/phpunit:>=10",
|
|
"warn_if_missing": false
|
|
}
|
|
]
|
|
}
|