Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

mpkorstanje
Copy link
Contributor

@mpkorstanje mpkorstanje commented Aug 19, 2025

🤔 What's changed?

The Javascript implementation didn't quite follow the Java implementation. Specifically it would append the plain text but then only advance the current index if there was an argument.

Fixed this and also updated the Java implementation for clarity and parity.

⚡️ What's your motivation?

Partially fixes cucumber/cucumber-js#2620

🏷️ What kind of change is this?

  • 🐛 Bug fix (non-breaking change which fixes a defect)

♻️ Anything particular you want feedback on?

See below.

📋 Checklist:

  • I agree to respect and uphold the Cucumber Community Code of Conduct
  • I've changed the behaviour of the code
    • I have added/updated tests to cover my changes.
  • My change requires a change to the documentation.
    • I have updated the documentation accordingly.
  • Users should know about my change
    • I have added an entry to the "Unreleased" section of the CHANGELOG, linking to this pull request.

@mpkorstanje mpkorstanje force-pushed the fix-repeated-step-arguments branch 2 times, most recently from c50971a to c251e4e Compare August 19, 2025 15:41
@mpkorstanje mpkorstanje requested a review from davidjgoss August 19, 2025 15:42
@mpkorstanje
Copy link
Contributor Author

mpkorstanje commented Aug 19, 2025

I don't have time to wrap this up. We definitively need a more complicated example with a regular expression in the CCK. Needs a changelog too.

@mpkorstanje mpkorstanje marked this pull request as ready for review August 27, 2025 13:21
@mpkorstanje mpkorstanje force-pushed the fix-repeated-step-arguments branch 2 times, most recently from a8374ff to 6e8dd39 Compare August 27, 2025 13:23
The Javascript implementation didn't quite follow the Java
implementation. Specifically it would append the plain text but then
only advance the current index if there was an argument.

Partially fixes cucumber/cucumber-js#2620
@mpkorstanje mpkorstanje force-pushed the fix-repeated-step-arguments branch from 6e8dd39 to e4a8da5 Compare August 28, 2025 12:49
@mpkorstanje mpkorstanje merged commit 956fc90 into main Aug 28, 2025
8 checks passed
@mpkorstanje mpkorstanje deleted the fix-repeated-step-arguments branch August 28, 2025 12:51
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

Successfully merging this pull request may close these issues.

Missing errors, methods exposed and steps showing 3 times after update
2 participants