We are using a test Protractor-Cucumber BDD test framework. Does Cucumber js not support 'Background' hook?
I am trying a scenario like shown below:
Background:
Given an authenticated user
Scenario Outline: test something
Given the home page is displayed
When I fill the form for <patient>
Then form should be submitted successfully
Examples:
|patient|
|pat1 |
|pat2 |
On running get error -
expected: #TagLine, #ScenarioLine, #ScenarioOutlineLine, #Comment, #Empty, got 'Background:'
expected: #TagLine, #ScenarioLine, #ScenarioOutlineLine, #Comment, #Empty, got 'Given an authenticated user'