You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Scenario Outline: I get all posts filtered using '<filter>=<value>' directiveGiven I set request query
| <filter> | <value> |When I GET /api/v1/posts/all
Then response status code should be 200
And response body should match snapshot
Examples:
| filter | value | | title | carindustry |
Current behavior
Running this test, I end up with the following error:
Error: Can not do a snapshot. Scenario not found in file test/functional/features/posts/get_posts.feature on line 13
Expected behavior
Test running :)
Environment
node version: 8.5.0
cucumber version: 2.3.1
@ekino/veggies version: 0.6.0
The text was updated successfully, but these errors were encountered:
plouc
changed the title
Current snapshot implementation does work with scenario outlines
Current snapshot implementation does not work with scenario outlines
Feb 16, 2018
if @bnadim is busy, I can have a try at this.
I've been digging around and apparently, Snapshot class method extractScenarios only matches /^[\s]*Scenario:[\s]*(.*[^\s])[\s]*$/, so when it's a Scenario Outline it doesn't match. Moreover, the line number for a single scenario in the outline, is the line number where the example is specified.
Anyway, I can give it a shot if that doesn't bother you.
Steps to reproduce
Having a scenario like this:
Current behavior
Running this test, I end up with the following error:
Expected behavior
Test running :)
Environment
8.5.0
2.3.1
0.6.0
The text was updated successfully, but these errors were encountered: