Skip to content

Commit bdcebb2

Browse files
authored
Add dependency on ddev/ddev-selenium-standalone-chrome (#125)
to provide a full-flagged environment for running automated tests in contrib projects
1 parent 70db9c9 commit bdcebb2

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ DDEV integration for developing Drupal contrib projects. As a general philosophy
1616
4. Configure DDEV for Drupal using `ddev config --project-type=drupal --docroot=web --php-version=8.3 --corepack-enable --project-name=[module]` or select these options when prompted using `ddev config`
1717
- Remove underscores in the project name, or replace with hyphens. (DDEV will do this for you.)
1818
- See [Misc](#misc) for help on using alternate versions of Drupal core.
19-
5. Run `ddev add-on get ddev/ddev-drupal-contrib`
19+
5. Run `ddev add-on get ddev/ddev-selenium-standalone-chrome ddev/ddev-drupal-contrib && ddev add-on get ddev/ddev-drupal-contrib`
2020
6. Run `ddev start`
2121
7. Run `ddev poser`
2222
8. Run `ddev symlink-project`

config.contrib.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ web_environment:
88
- DRUPAL_CORE=^11
99
- # https://git.drupalcode.org/project/gitlab_templates/-/blob/1.9.6/scripts/expand_composer_json.php?ref_type=tags#L15
1010
- IGNORE_PROJECT_DRUPAL_CORE_VERSION=1
11-
- SIMPLETEST_DB=mysql://db:db@db/db
12-
- SIMPLETEST_BASE_URL=http://web
13-
- BROWSERTEST_OUTPUT_DIRECTORY=/tmp
14-
- BROWSERTEST_OUTPUT_BASE_URL=${DDEV_PRIMARY_URL}
1511
# To change the location of your project code, see the README:
1612
# https://github.com/ddev/ddev-drupal-contrib/blob/main/README.md#changing-the-symlink-location
1713
- DRUPAL_PROJECTS_PATH=modules/custom

install.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,6 @@ project_files:
1414
- config.contrib.yaml
1515

1616
ddev_version_constraint: '>= v1.24.6'
17+
18+
dependencies:
19+
- ddev-selenium-standalone-chrome

tests/_common.bash

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ _common_setup() {
1515
if [ -n "$TEST_DRUPAL_CORE" ] && [ "$TEST_DRUPAL_CORE" != "default" ]; then
1616
echo -e "web_environment:\n - DRUPAL_CORE=^${TEST_DRUPAL_CORE}" > .ddev/config.~overrides.yaml
1717
fi
18+
ddev add-on get ddev/ddev-selenium-standalone-chrome
1819
ddev add-on get ${DIR}
1920
}
2021

0 commit comments

Comments
 (0)