Skip to content

Fix update of cucumber pickle data for before/after hooks#11914

Merged
christian-bromann merged 5 commits intowebdriverio:mainfrom
07souravkunda:fix/cucumber_pickle_data_update
Dec 24, 2023
Merged

Fix update of cucumber pickle data for before/after hooks#11914
christian-bromann merged 5 commits intowebdriverio:mainfrom
07souravkunda:fix/cucumber_pickle_data_update

Conversation

@07souravkunda
Copy link
Contributor

Proposed changes

Emit _cucumberPickle data for each event when updated at cucumberFormatter. In this change we are emitting pickle data only onGherkinDocument, before this we were sending updated pickle data to getHookParams passed to before/after hooks. Which results in step as undefined here.

Types of changes

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update

Checklist

  • I have read the CONTRIBUTING doc
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)
  • I have added proper type definitions for new commands (if appropriate)

Further comments

Reviewers: @webdriverio/project-committers

Copy link
Member

@christian-bromann christian-bromann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for raising a PR, mind adding a small test to ensure we don't regress here?

@christian-bromann christian-bromann added the PR: Bug Fix 🐛 PRs that contain bug fixes label Dec 22, 2023
@07souravkunda
Copy link
Contributor Author

Thanks for raising a PR, mind adding a small test to ensure we don't regress here?

done

Copy link
Member

@christian-bromann christian-bromann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@christian-bromann christian-bromann merged commit 94eb79a into webdriverio:main Dec 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: Bug Fix 🐛 PRs that contain bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants