Closed squarebraket closed 3 years ago
@squarebraket I think you need to add the lines on the right hand side of the table for the last column to be recognised. So like:
Feature: Frequent Flyer status is calculated based on points
As a Frequent Flyer member
I want my status to be upgraded as soon as I earn enough points
So that I can benefit from my higher status sooner
Scenario Outline:
Given "Joe Jones" is a "<initialStatus>" FrequentFlyer member
And "Joe Jones" has <initialStatusPoints> status points
When he earns <extraPoints> extra status points
Then he should have a status of "<finalStatus>"
Examples: Status points required for each level
| initialStatus | initialStatusPoints | extraPoints | finalStatus |
| Bronze | 0 | 300 | Silver |
Thanks, @davidjgoss I missed that in the documentation, I didn't read it carefully.
@squarebraket no problem!
Cucumber-js: 7.0.0 Node: v14.5.0 MacOs: 11.1 (Big Sur)
I created the following feature:
and the following "step" in Javascript
But I got the following error:
I had to add yet another column to my table for it to work, like this:
Does anybody see what could be my mistake? Thanks