b-yond-infinite-network / jest-cucumber-fusion

Write cucumber test the natural way but still have them part of a jest run (including coverage)
Apache License 2.0
15 stars 8 forks source link

Scenario examples are incorrectly parsed when using in step with tables #27

Closed j8kin closed 3 years ago

j8kin commented 3 years ago

When Scenario Outline contains step with RegExp in Definition and using example value in Table at the same time then during execution example value is not substituted in step. For example:

Scenario Outline: <description>
  Given Some step with <exampleValue> and use table:
     | field     | value          |
     | SomeField | <exampleValue> |

Examples:
    | exampleValue |
    | myValue      |

then during the execution scenario step contains: { field: 'SomeField', value: '\<exampleValue>'} instead of { field: 'SomeField', value: 'myValue'}

j8kin commented 3 years ago

@bruno-morel please dont publish it now! I'm investigating 'using-dynamic-values.feature' something goes wrong