Skip to content

Commit df587cb

Browse files
committed
Issue #247: Use PhantomJS instead of Zombie
1 parent c1c7079 commit df587cb

File tree

4 files changed

+24
-6
lines changed

4 files changed

+24
-6
lines changed

example/composer.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "client/project",
33
"description": "{Project} drupal codebase for {client}.",
44
"require-dev": {
5-
"behat/mink-zombie-driver": "~1.2",
5+
"jakoch/phantomjs-installer": "2.1.1",
66
"drupal/drupal-extension": "~3.0",
77
"drush/drush": "dev-master",
88
"phpmd/phpmd": "~2.1",
@@ -11,5 +11,13 @@
1111
},
1212
"require": {
1313
"roave/security-advisories": "dev-master"
14+
},
15+
"scripts": {
16+
"post-install-cmd": [
17+
"PhantomInstaller\\Installer::installPhantomJS"
18+
],
19+
"post-update-cmd": [
20+
"PhantomInstaller\\Installer::installPhantomJS"
21+
]
1422
}
1523
}

example/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
"private": true,
66
"dependencies": {
77
"grunt": "~0.4.5",
8-
"grunt-drupal-tasks": "~0.9.0",
9-
"zombie": "^2.5.1"
8+
"grunt-drupal-tasks": "~0.9.0"
109
}
1110
}

example/test/behat.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@ default:
88
extensions:
99
Behat\MinkExtension:
1010
goutte: ~
11-
selenium2: ~
12-
zombie: ~
11+
# PhantomJS uses the Selenium2 mink driver.
12+
# To run: `vendor/bin/phantomjs --webdriver=8643`
13+
selenium2:
14+
wd_host: "http://localhost:8643/wd/hub"
1315
base_url: http://127.0.0.1:8080
14-
javascript_session: 'zombie'
16+
javascript_session: 'selenium2'
1517
Drupal\DrupalExtension:
1618
blackbox: ~
1719
drush:

test/test_assets_d8/composer.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,19 @@
88
"phpmd/phpmd": "~2.1",
99
"drupal/coder": "^8.2",
1010
"guzzlehttp/guzzle" : "^6.0@dev",
11+
"jakoch/phantomjs-installer": "2.1.1",
1112
"symfony/dependency-injection": "2.7.*",
1213
"symfony/event-dispatcher": "2.7.*"
1314
},
1415
"require": {
1516
"roave/security-advisories": "dev-master"
17+
},
18+
"scripts": {
19+
"post-install-cmd": [
20+
"PhantomInstaller\\Installer::installPhantomJS"
21+
],
22+
"post-update-cmd": [
23+
"PhantomInstaller\\Installer::installPhantomJS"
24+
]
1625
}
1726
}

0 commit comments

Comments
 (0)