Skip to content

Commit

Permalink
Issue #247: Use PhantomJS instead of Zombie
Browse files Browse the repository at this point in the history
  • Loading branch information
jhedstrom committed Nov 7, 2017
1 parent 35ec98c commit 55e27c8
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 6 deletions.
2 changes: 1 addition & 1 deletion example/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"roave/security-advisories": "dev-master"
},
"require-dev": {
"behat/mink-zombie-driver": "dev-master#dd32fbd6988881dbab583225b65b787a893bb131",
"jakoch/phantomjs-installer": "^2.1",
"drupal/drupal-extension": "~3.0",
"drush/drush": "^8",
"drupal/console": "~0.10",
Expand Down
3 changes: 1 addition & 2 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"private": true,
"dependencies": {
"grunt": "^1.0.0",
"grunt-drupal-tasks": "~1.0.0",
"zombie": "^4.2.1"
"grunt-drupal-tasks": "~1.0.0"
}
}
8 changes: 5 additions & 3 deletions example/test/behat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ default:
extensions:
Behat\MinkExtension:
goutte: ~
selenium2: ~
zombie: ~
# PhantomJS uses the Selenium2 mink driver.
# To run: `vendor/bin/phantomjs --webdriver=8643`
selenium2:
wd_host: "http://localhost:8643/wd/hub"
base_url: http://127.0.0.1:8080
javascript_session: 'zombie'
javascript_session: 'selenium2'
Drupal\DrupalExtension:
blackbox: ~
drush:
Expand Down
26 changes: 26 additions & 0 deletions test/test_assets_d8/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"name": "client/project",
"description": "{Project} drupal codebase for {client}.",
"require-dev": {
"behat/mink-zombie-driver": "~1.2",
"drupal/drupal-extension": "~3.0",
"drush/drush": "dev-master",
"phpmd/phpmd": "~2.1",
"drupal/coder": "^8.2",
"guzzlehttp/guzzle" : "^6.0@dev",
"jakoch/phantomjs-installer": "2.1.1",
"symfony/dependency-injection": "2.7.*",
"symfony/event-dispatcher": "2.7.*"
},
"require": {
"roave/security-advisories": "dev-master"
},
"scripts": {
"post-install-cmd": [
"PhantomInstaller\\Installer::installPhantomJS"
],
"post-update-cmd": [
"PhantomInstaller\\Installer::installPhantomJS"
]
}
}

0 comments on commit 55e27c8

Please sign in to comment.