Skip to content

Commit

Permalink
Improve bats tests installing drupal
Browse files Browse the repository at this point in the history
  • Loading branch information
juanjol committed Sep 26, 2024
1 parent 2f1bd0d commit ed07add
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion backstopjsFiles/local/backstop.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"scenarios": [
{
"label": "Homepage",
"url": "http://web/",
"url": "https://web/",
"selectorExpansion": true,
"readySelector": "body",
"misMatchThreshold" : 0.1
Expand Down
5 changes: 3 additions & 2 deletions tests/test.bats
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ setup() {
ddev delete -Oy ${PROJNAME} >/dev/null 2>&1 || true
cd "${TESTDIR}"
ddev config --project-name=${PROJNAME}


ddev start -y >/dev/null
ddev composer create drupal/recommended-project -y
ddev composer require --dev drush/drush
ddev drush site:install --account-name=admin --account-pass=admin -y
}

teardown() {
Expand Down

0 comments on commit ed07add

Please sign in to comment.