Feature: Sample Snippets test
As a developer
I should be able to use given text snippets
@beforeAllScenarios
Scenario: open URL
Given the page url is not "http://webdriverjs.christian-bromann.com/"
And I open the url "http://webdriverjs.christian-bromann.com/"
Then I expect that the url is "http://webdriverjs.christian-bromann.com/"
And I expect that the url is not "http://google.com"
I expect console.log = hooks.js
I expect console.log = Before
I expect console.log = @beforeAllScenarios
Actual behavior
I get console.log = hooks.js
and nothing else.
module.exports does not seem to run at all.
I have tried using es6 format, with fat arrows but does not make any difference.
Issue occurred on browser/platform
I am using windows 7, node 8.9.4
This used to work for me a year ago but was using an older version of node with the following package.json dependencies:
Issue description
Hook don't seem to run anymore.
Steps to reproduce
These are my files:
wdio.conf.js
hooks.js
feature
package.json file
Expected behavior
I expect console.log = hooks.js I expect console.log = Before I expect console.log = @beforeAllScenarios
Actual behavior
I get console.log = hooks.js and nothing else. module.exports does not seem to run at all. I have tried using es6 format, with fat arrows but does not make any difference.
Issue occurred on browser/platform
I am using windows 7, node 8.9.4 This used to work for me a year ago but was using an older version of node with the following package.json dependencies:
I suspect some updates to the hooks have affected it with wdio-cucumber-framework but after half a day researching have not found a working solution.