Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lack of line break support for formatting and autocompletion #452

Open
Clement398 opened this issue Sep 28, 2022 · 0 comments
Open

Lack of line break support for formatting and autocompletion #452

Clement398 opened this issue Sep 28, 2022 · 0 comments

Comments

@Clement398
Copy link

Describe the bug
When auto-formatting a .feature, if there are line breaks between two example lines, the alignment of the vertical bars will be done individually on each line block instead of all lines.
Moreover, if a step expects a number and the first example line is separated from the following ones by a line break, the autocompletion will consider the line in error.

To Reproduce
Format a .feature whose example lines are separated by line breaks.
Separated the first example line from the others by a line break while one of the steps expects a number.

Expected behavior
When formatting, the vertical bars of the example lines align, ignoring line breaks.
Autocompletion interprets the lines of examples ignoring line breaks.

Screenshots
Before formatting:
Image 1
After formatting:
Image 2

Step without line break:
Image 3
Step with line break:
Image 4

Step definition:

Then("I must have delivery fees of {int} on my {string} page", (deliveryCost, page) => {});

Gherkin step line

Feature: Test

  Scenario Outline: Test
    Then I must have delivery fees of <deliveryCost> on my 'confirmation' page

    Examples:
      | lang | country | currency | product          | number | deliveryCost |

      | en   | AR      | EUR      | women jewelry WH | 1      | 25           |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant