From d3d6cb526089fb5ce0f6d53d21e3316b89d18877 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juanjo=20L=C3=B3pez?= Date: Thu, 26 Sep 2024 13:46:30 +0200 Subject: [PATCH] Improve bats tests installing drupal --- backstopjsFiles/local/backstop.json | 2 +- tests/test.bats | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/backstopjsFiles/local/backstop.json b/backstopjsFiles/local/backstop.json index 29981a2..9e162bb 100644 --- a/backstopjsFiles/local/backstop.json +++ b/backstopjsFiles/local/backstop.json @@ -22,7 +22,7 @@ "scenarios": [ { "label": "Homepage", - "url": "http://web/", + "url": "https://web/", "selectorExpansion": true, "readySelector": "body", "misMatchThreshold" : 0.1 diff --git a/tests/test.bats b/tests/test.bats index a54309c..a998c4a 100644 --- a/tests/test.bats +++ b/tests/test.bats @@ -7,10 +7,13 @@ setup() { export DDEV_NON_INTERACTIVE=true ddev delete -Oy ${PROJNAME} >/dev/null 2>&1 || true cd "${TESTDIR}" - ddev config --project-name=${PROJNAME} - - + ddev config --project-name=${PROJNAME} --project-type=php ddev start -y >/dev/null + ddev composer create drupal/recommended-project:^10 -y + ddev composer require --dev drush/drush:^12.0 + ddev config --project-name=${PROJNAME} --project-type=drupal + ddev restart -y >/dev/null + ddev drush site:install --account-name=admin --account-pass=admin -y } teardown() {