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 Mar 2, 2016
1 parent c1c7079 commit df587cb
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 6 deletions.
10 changes: 9 additions & 1 deletion example/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "client/project",
"description": "{Project} drupal codebase for {client}.",
"require-dev": {
"behat/mink-zombie-driver": "~1.2",
"jakoch/phantomjs-installer": "2.1.1",
"drupal/drupal-extension": "~3.0",
"drush/drush": "dev-master",
"phpmd/phpmd": "~2.1",
Expand All @@ -11,5 +11,13 @@
},
"require": {
"roave/security-advisories": "dev-master"
},
"scripts": {
"post-install-cmd": [
"PhantomInstaller\\Installer::installPhantomJS"
],
"post-update-cmd": [
"PhantomInstaller\\Installer::installPhantomJS"
]
}
}
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": "~0.4.5",
"grunt-drupal-tasks": "~0.9.0",
"zombie": "^2.5.1"
"grunt-drupal-tasks": "~0.9.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
9 changes: 9 additions & 0 deletions test/test_assets_d8/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,19 @@
"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 df587cb

Please sign in to comment.