bencompton / jest-cucumber

Execute Gherkin scenarios in Jest
Apache License 2.0
662 stars 118 forks source link

Scenario outline does not make an error when it is not the first line which is in error #164

Closed lionel-meunier closed 5 months ago

lionel-meunier commented 2 years ago

When I run this test I get success

  Scenario Outline: should remove all char and manage decimal sep and limit
    When set value of transaction amount directive with "<begin value>"
    And in transaction amount field, I past at end the value "<paste value>"
    Then the transaction amount field show "<field value>"
    When I leave transaction amount field and wait 100ms
    Then the transaction amount field show "<field value blur>"
    Examples:
      | begin value | paste value | field value | field value blur |
      | 1           | ,           | 1,          | 1                |
      | 5.1         | 0           | 5,10        | 5,1              |

and this one I got an error

 Scenario Outline: should remove all char and manage decimal sep and limit
    When set value of transaction amount directive with "<begin value>"
    And in transaction amount field, I past at end the value "<paste value>"
    Then the transaction amount field show "<field value>"
    When I leave transaction amount field and wait 100ms
    Then the transaction amount field show "<field value blur>"
    Examples:
      | begin value | paste value | field value | field value blur |
      | 5.1         | 0           | 5,10        | 5,1              |
      | 1           | ,           | 1,          | 1                |

I have the impression that the return error in jest is defined only by the first result.

tonirecio commented 2 years ago

I've tried and works for me. Can you show us the whole console result?

github-actions[bot] commented 7 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

pplancq commented 7 months ago

@lionel-meunier I can't reproduce the problem you describe. If you still have this problem, can you give me more details?

github-actions[bot] commented 5 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] commented 5 months ago

This issue is closed because there has been no recent activity.