Skip to content

Commit 0a5c185

Browse files
authored
Pin chromium and chromium-driver versions (#58)
1 parent e0aa9c9 commit 0a5c185

File tree

4 files changed

+35
-2
lines changed

4 files changed

+35
-2
lines changed

config.ddev-drupal-core-dev.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,3 @@ upload_dirs:
88
# but with DDEV + mutagen that isn't possible.
99
# so just redirect the upload_dirs.
1010
- .ddev/tmp
11-
webimage_extra_packages: ["chromium-common=136.0.7103.113-1~deb12u1", "chromium-driver=136.0.7103.113-1~deb12u1"]

install.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ name: ddev-drupal-core-dev
55
project_files:
66
- config.ddev-drupal-core-dev.yaml
77
- docker-compose.core-dev-selenium.yaml
8+
- web-build/Dockerfile.chromium
89
- commands/web/drupal
910
- commands/web/phpunit
1011
- commands/web/nightwatch
@@ -30,7 +31,11 @@ post_install_actions:
3031
- mkdir -p ../test_output
3132
- chmod +w ../test_output
3233
- |
33-
if [ -d "../web/core" ]; then
34+
if ! ddev status | grep -q "chrome:4444"; then
35+
ddev start
36+
fi
37+
- |
38+
if [ -d "../web" ]; then
3439
cp core-dev/.env ../web/core/.env
3540
ddev exec -d /var/www/html/web/core yarn
3641
else

tests/test.bats

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,24 @@ teardown() {
7575
assert_success
7676

7777
health_checks
78+
79+
cd ${TESTDIR_COMPOSER}
80+
run ddev restart
81+
assert_success
82+
83+
cd ${TESTDIR_CHECKOUT}
84+
run ddev restart
85+
assert_success
86+
87+
health_checks
88+
89+
cd ${TESTDIR_COMPOSER}
90+
echo "# ddev add-on remove ddev-drupal-core-dev with project ${PROJNAME_COMPOSER} in $(pwd)" >&3
91+
run ddev add-on remove ddev-drupal-core-dev
92+
assert_success
93+
94+
cd ${TESTDIR_CHECKOUT}
95+
echo "# ddev add-on remove ddev-drupal-core-dev with project ${PROJNAME_CHECKOUT} in $(pwd)" >&3
96+
run ddev add-on remove ddev-drupal-core-dev
97+
assert_success
7898
}

web-build/Dockerfile.chromium

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#ddev-generated
2+
RUN sudo apt update -y \
3+
&& sudo apt remove chromium* -y \
4+
&& wget https://ftp.debian.org/debian/pool/main/c/chromium/chromium_136.0.7103.113-1~deb12u1_amd64.deb \
5+
&& wget https://ftp.debian.org/debian/pool/main/c/chromium/chromium-common_136.0.7103.113-1~deb12u1_amd64.deb \
6+
&& wget https://ftp.debian.org/debian/pool/main/c/chromium/chromium-driver_136.0.7103.113-1~deb12u1_amd64.deb \
7+
&& sudo apt install ./chromium*.deb -y \
8+
&& sudo apt-mark hold chromium chromium-common chromium-driver \
9+
&& rm -f chromium*.deb

0 commit comments

Comments
 (0)