{"action":"created","issue":{"url":"https://api.github.com/repos/Behat/MinkExtension/issues/219","labels_url":"https://api.github.com/repos/Behat/MinkExtension/issues/219/labels{/name}","comments_url":"https://api.github.com/repos/Behat/MinkExtension/issues/219/comments","events_url":"https://api.github.com/repos/Behat/MinkExtension/issues/219/events","html_url":"https://github.com/Behat/MinkExtension/issues/219","id":112024633,"number":219,"title":"Zombie is throwing syntax error","user":{"login":"geraldvillorente","id":820842,"avatar_url":"https://avatars.githubusercontent.com/u/820842?v=3","gravatar_id":"","url":"https://api.github.com/users/geraldvillorente","html_url":"https://github.com/geraldvillorente","followers_url":"https://api.github.com/users/geraldvillorente/followers","following_url":"https://api.github.com/users/geraldvillorente/following{/other_user}","gists_url":"https://api.github.com/users/geraldvillorente/gists{/gist_id}","starred_url":"https://api.github.com/users/geraldvillorente/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geraldvillorente/subscriptions","organizations_url":"https://api.github.com/users/geraldvillorente/orgs","repos_url":"https://api.github.com/users/geraldvillorente/repos","events_url":"https://api.github.com/users/geraldvillorente/events{/privacy}","received_events_url":"https://api.github.com/users/geraldvillorente/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-10-18T15:06:28Z","updated_at":"2015-10-19T12:29:14Z","closed_at":null,"body":"Behat newbie here. Started Behat 2 days ago and I am working on using Zombie which I am having trouble to make it work.\r\n\r\n```\r\ngerald@von-viel:~/Repo/drupalproject/tests$ bin/behat --stop-on-failure features/home.feature \r\nFeature: Homepage\r\n  In order to know the website is running\r\n  As a website user\r\n  I need to be able to view the site title and login\r\n                                                                                                                                                   \r\n  [RuntimeException]                                                                                                                                    \r\n  Exception has been thrown in \"beforeScenario\" hook, defined in FeatureContext::beforeScenario()                                                       \r\n                                                                                                                                                        \r\n  Server process has been terminated: (1) [/home/gerald/Repo/drupalproject/tests/node_modules/zombie/node_modules/jsdom/lib/jsdom/level1/core.js:418  \r\n    set nodeName() { throw new core.DOMException();},                                                                                                   \r\n                 ^                                                                                                                                      \r\n  SyntaxError: Unexpected token )                                                                                                                       \r\n      at exports.runInThisContext (vm.js:73:16)                                                                                                         \r\n      at Module._compile (module.js:443:25)                                                                                                             \r\n      at Object.Module._extensions..js (module.js:478:10)                                                                                               \r\n      at Module.load (module.js:355:32)                                                                                                                 \r\n      at Function.Module._load (module.js:310:12)                                                                                                       \r\n      at Module.require (module.js:365:17)                                                                                                              \r\n      at require (module.js:384:17)                                                                                                                     \r\n      at Object.<anonymous> (/home/gerald/Repo/drupalproject/tests/node_modules/zombie/node_modules/jsdom/lib/jsdom/level2/core.js:1:94)              \r\n      at Module._compile (module.js:460:26)                                                                                                             \r\n      at Object.Module._extensions..js (module.js:478:10)                                                                                               \r\n  ]                                                                                                                                                     \r\n                                                                                                                                                        \r\nbehat [--init] [-f|--format=\"...\"] [--out=\"...\"] [--lang=\"...\"] [--[no-]ansi] [--[no-]time] [--[no-]paths] [--[no-]snippets] [--[no-]snippets-paths] [--[no-]multiline] [--[no-]expand] [--story-syntax] [-d|--definitions=\"...\"] [--name=\"...\"] [--tags=\"...\"] [--cache=\"...\"] [--strict] [--dry-run] [--stop-on-failure] [--rerun=\"...\"] [--append-snippets] [--append-to=\"...\"] [features]\r\n```\r\n\r\nHere is my feature:\r\n\r\n```\r\nFeature: Homepage\r\n  In order to know the website is running\r\n  As a website user\r\n  I need to be able to view the site title and login\r\n\r\n  Scenario: Viewing the site title\r\n    Given I am on the homepage\r\n    Then I should see \"Welcome\"\r\n\r\n  @api @mink:zombie\r\n  Scenario: See \"Add Content\"\r\n    Given I am logged in as a user with the \"administrator\" role\r\n      And I am on the homepage\r\n    Then I should see \"Add content\"\r\n    When I click \"Add content\"\r\n    # And I wait for \"9\" seconds\r\n    Then I should see \"Use basic pages for your static content\"\r\n```\r\n\r\nSome details about my environment:\r\n\r\n```\r\ngerald@von-viel:~/Repo/drupalproject/tests$ npm list zombie\r\n/home/gerald/Repo/drupalproject/tests\r\n└── zombie@1.4.1 \r\n```\r\n\r\n```\r\nBehat 2.5.0\r\nmink-zombie-driver (v1.1.0)\r\n```\r\n\r\n`behat.yml`\r\n```\r\ndefault:\r\n  paths:\r\n    features: 'features'\r\n  extensions:\r\n    Behat\\MinkExtension\\Extension:\r\n      goutte: ~\r\n      selenium2: ~\r\n      zombie: ~\r\n      base_url: http://local.drupalproject.com\r\n      default_session: 'zombie'\r\n      javascript_session: zombie\r\n      zombie:\r\n        node_modules_path: /home/gerald/Repo/drupalproject/tests/node_modules/\r\n    Drupal\\DrupalExtension\\Extension:\r\n      blackbox: ~\r\n      api_driver: drupal\r\n      drush:\r\n        alias: drupal.local\r\n      drupal:\r\n        drupal_root: '../www'\r\n      subcontexts:\r\n        paths:\r\n          - '../www/sites/all/modules'\r\n      selectors:\r\n        error_message_selector: .messages.error\r\n        success_message_selector: .messages.status\r\n      text:\r\n        username_field: Email\r\n```"},"comment":{"url":"https://api.github.com/repos/Behat/MinkExtension/issues/comments/149200211","html_url":"https://github.com/Behat/MinkExtension/issues/219#issuecomment-149200211","issue_url":"https://api.github.com/repos/Behat/MinkExtension/issues/219","id":149200211,"user":{"login":"geraldvillorente","id":820842,"avatar_url":"https://avatars.githubusercontent.com/u/820842?v=3","gravatar_id":"","url":"https://api.github.com/users/geraldvillorente","html_url":"https://github.com/geraldvillorente","followers_url":"https://api.github.com/users/geraldvillorente/followers","following_url":"https://api.github.com/users/geraldvillorente/following{/other_user}","gists_url":"https://api.github.com/users/geraldvillorente/gists{/gist_id}","starred_url":"https://api.github.com/users/geraldvillorente/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geraldvillorente/subscriptions","organizations_url":"https://api.github.com/users/geraldvillorente/orgs","repos_url":"https://api.github.com/users/geraldvillorente/repos","events_url":"https://api.github.com/users/geraldvillorente/events{/privacy}","received_events_url":"https://api.github.com/users/geraldvillorente/received_events","type":"User","site_admin":false},"created_at":"2015-10-19T12:29:14Z","updated_at":"2015-10-19T12:29:14Z","body":"@stof  and @aik099 I updated Zombie to 4.1.0 and re ran my test but I got a new error. Please see below.\r\n\r\n```\r\ngerald@von-viel:~/Repo/newplayexchange/tests$ bin/behat --stop-on-failure features/home.feature \r\nFeature: Homepage\r\n  In order to know the website is running\r\n  As a website user\r\n  I need to be able to view the site title and login\r\n                                                                                                                                                               \r\n  [RuntimeException]                                                                                                                                           \r\n  Exception has been thrown in \"beforeScenario\" hook, defined in FeatureContext::beforeScenario()                                                              \r\n                                                                                                                                                               \r\n  Server process has been terminated: (1) [/home/gerald/Repo/drupalproject/tests/node_modules/zombie/node_modules/jsdom/lib/jsdom/living/node-iterator.js:3  \r\n  const defineGetter = require(\"../utils\").defineGetter;                                                                                                       \r\n  ^^^^^                                                                                                                                                        \r\n  SyntaxError: Use of const in strict mode.                                                                                                                    \r\n      at exports.runInThisContext (vm.js:73:16)                                                                                                                \r\n      at Module._compile (module.js:443:25)                                                                                                                    \r\n      at Object.Module._extensions..js (module.js:478:10)                                                                                                      \r\n      at Module.load (module.js:355:32)                                                                                                                        \r\n      at Function.Module._load (module.js:310:12)                                                                                                              \r\n      at Module.require (module.js:365:17)                                                                                                                     \r\n      at require (module.js:384:17)                                                                                                                            \r\n      at Object.<anonymous> (/home/gerald/Repo/drupalproject/tests/node_modules/zombie/node_modules/jsdom/lib/jsdom/living/index.js:22:1)                    \r\n      at Module._compile (module.js:460:26)                                                                                                                    \r\n      at Object.Module._extensions..js (module.js:478:10)                                                                                                      \r\n      at Module.load (module.js:355:32)                                                                                                                        \r\n      at Function.Module._load (module.js:310:12)                                                                                                              \r\n      at Module.require (module.js:365:17)                                                                                                                     \r\n      at require (module.js:384:17)                                                                                                                            \r\n      at Object.<anonymous> (/home/gerald/Repo/drupalproject/tests/node_modules/zombie/lib/dom/index.js:5:11)                                                \r\n      at Module._compile (module.js:460:26)                                                                                                                    \r\n  ]                                                                                                                                                            \r\n                                                                                                                                                               \r\n\r\nbehat [--init] [-f|--format=\"...\"] [--out=\"...\"] [--lang=\"...\"] [--[no-]ansi] [--[no-]time] [--[no-]paths] [--[no-]snippets] [--[no-]snippets-paths] [--[no-]multiline] [--[no-]expand] [--story-syntax] [-d|--definitions=\"...\"] [--name=\"...\"] [--tags=\"...\"] [--cache=\"...\"] [--strict] [--dry-run] [--stop-on-failure] [--rerun=\"...\"] [--append-snippets] [--append-to=\"...\"] [features]\r\n```"}}