'And' keyword is not working, on commenting 'And' line the test works!
What did you see? 👀
And keyword is not working, on comment And line the test works!
What did you expect to see? 😎
And keyword should also work like other keywords
Which version are you using? 🎁
Use cucumber with java and testng

Impossible to say without the actual text of the feature file.
The actual text is:
And\t\tthe products api is called with <product> we have the list and fetch <product_id>
Because And isn't followed by a space ( ) Cucumber can't parse it.
I would expect a parser to be lenient towards different space characters. However in this case the space is hardcoded into the keyword definition.
https://github.com/cucumber/common/blob/main/gherkin/gherkin-languages.json#L745
Maybe, a parser post-processing task that normalizes the step and removes/replaces the TABULATORs with SPACEs (and maybe removes duplicated SPACEs) would be a good idea !?
BUT: The question is how often does this syndrome occur ?
It is indeed weird; if we want to fix it I think we'd need to keep the whitespace (regex?) part of the Dialect/JSON rather than building it into the parser, as I'm not sure if all other languages use the same spacers to separate words:
(It may be an idea to make the keyword separator (:) part of the dialect too)