Skip to content

Commit

Permalink
Merge pull request #212 from palantirnet/headless-chrome
Browse files Browse the repository at this point in the history
Update the-build to use headless chrome
  • Loading branch information
agentrickard authored Feb 1, 2023
2 parents 68cbd44 + 798df4a commit 60c2045
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"require": {
"composer-runtime-api": "^2.2.2",
"cweagans/composer-patches": "^1.7",
"dmore/behat-chrome-extension": "^1.4",
"drupal/coder": "^8.3.6",
"drush/drush": ">=9",
"mglaman/drupal-check": "^1.2",
Expand Down
14 changes: 9 additions & 5 deletions defaults/install/behat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@ default:
gherkin:
cache: ~
extensions:
Behat\MinkExtension:
DMore\ChromeExtension\Behat\ServiceContainer\ChromeExtension: ~
Drupal\MinkExtension:
goutte: ~
selenium2:
wd_host: "http://127.0.0.1:8643/wd/hub"
javascript_session: selenium2
chrome:
api_url: "http://chrome:9222"
browser_name: chrome
javascript_session: chrome
base_url: ${drupal.sites.default.uri}
Drupal\DrupalExtension:
blackbox: ~
Expand All @@ -32,5 +34,7 @@ default:

circleci:
extensions:
Behat\MinkExtension:
Drupal\MinkExtension:
chrome:
api_url: "http://localhost:9222"
base_url: ${drupal.sites.default.uri}:8000
8 changes: 6 additions & 2 deletions targets/install.xml
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,15 @@
<!-- The one that's available is the location we're moving from. -->
<available file="${build.dir}/web/core" type="dir" property="drupal.root.old" value="web" />
<available file="${build.dir}/docroot/core" type="dir" property="drupal.root.old" value="docroot" />
<available file="${build.dir}/${drupal.root.old}/sites/default/settings.ddev.php" type="file" property="ddev_settings_exists" value="true" />
<available file="${build.dir}/${drupal.root}/sites/default/settings.ddev.php" type="file" property="ddev_settings_exists" value="true" />
<available file="${build.dir}/${drupal.root.old}/sites/default/settings.ddev.php" type="file" property="old_ddev_settings_exists" value="true" />

<!-- Copy settings.ddev.php if it doesn't exist in the old drupal root. -->
<if>
<not><equals arg1="${ddev_settings_exists}" arg2="1" /></not>
<and>
<equals arg1="${ddev_settings_exists}" arg2="1" />
<not><equals arg1="${old_ddev_settings_exists}" arg2="1" /></not>
</and>
<then>
<echo msg="Copying settings.ddev.php to old drupal root." />
<exec command="cp ${drupal.root}/sites/default/settings.ddev.php ${drupal.root.old}/sites/default" dir="${build.dir}" checkreturn="true" logoutput="true" />
Expand Down

0 comments on commit 60c2045

Please sign in to comment.