Example or examples using Zombie?

Events happening in the community are now at Drupal community events on www.drupal.org.
Posted by acouch on April 16, 2014 at 9:12pm

I've seen some discussion of and generic examples of using Zombie with behat. I haven't seen any examples of using it with the drupalextension. Has anyone had any success with Zombie and the drupalextension? If so can you share a gist? Thanks!

Comments

The salient bits:

Posted by larowlan on April 16, 2014 at 10:45pm

First of all setup your yaml:

default:
extensions:
Behat\MinkExtension\Extension:
javascript_sessions: zombie
zombie:
node_modules_path: /path/to/your/node_modules/
auto_server: false

And then your packages.json
{
"name": "pnx-behat-zombie",
"author": "Lee Rowlands",
"description": "The node.js requirements we have to run our behat tests",
"repository": {},
"dependencies": {
"zombie": "latest"
},
"version": "0.0.1"
}

Then install those with npm install.

Set your composer.json up with the following:

"require": {
"behat/mink-zombie-driver": "*@dev"
}

Then in your .feature, tag your scenario as @javascript or @mink:zombie

Thanks for the reply. I've

Posted by acouch on April 18, 2014 at 4:01pm

Thanks for the reply. I've got this up and running except the "click" function doesn't seem to be working though it works with Selenium or Goute.

"Given I click" or "Given I follow" results on the next step being on the same page. Have tried with several different setups, zombie versions, and other scenarios.

Here is a generic version where the click link doesn't work:

behat.yml: https://github.com/acouch/be-zombie-test/blob/81992f6c8eba35e83573d40209...

feature: https://github.com/acouch/be-zombie-test/blob/81992f6c8eba35e83573d40209...

.travis.yml: https://github.com/acouch/be-zombie-test/blob/81992f6c8eba35e83573d40209...

Any thoughts?

Behat

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

AltStyle によって変換されたページ (->オリジナル) /