Skip to content

← All questions

Where exactly does the "# title-format:" comment go? Lint still warns after I added one

Example threads. These questions and answers were written by the SDODS team to document real problems and how to fix them. The people named are illustrative, not real users. Questions asked on this site are marked new.

Trying to clear this:

text
⚠ features/auth/login.feature:15  outline/title-format  Scenario Outline has no "# title-format:" comment; examples will be titled "Example #N".

I added the comment and the warning did not move. My file:

gherkin
# title-format: <username> → <error>

@ui @regression
Scenario Outline: Failed login shows a clear error
  When I login with "<username>" and "<password>"
  Then I should see the login error "<error>"

  Examples:
    | username        | password     | error                                   |
    | locked_out_user | secret_sauce | Sorry, this user has been locked out.   |
    | standard_user   | wrong        | Username and password do not match      |

Does it have to be in a particular place?

3 answers

Know the answer?

Wrap commands and output in triple backticks and they will render as a code block.

Checking whether you’re signed in…

Have a different question? Ask it.

Related