Skip to content

Spec repoter - add docstring to the final report#10416

Merged
christian-bromann merged 4 commits intowebdriverio:mainfrom
toan-lab:main
May 22, 2023
Merged

Spec repoter - add docstring to the final report#10416
christian-bromann merged 4 commits intowebdriverio:mainfrom
toan-lab:main

Conversation

@toan-lab
Copy link
Contributor

Proposed changes

Add docstring to the final report for cucumber tests generated by spec-reporter. This PR is created to solve this bug #10394.

The argument property of each eventsToReports has string | Argument type, but current logic only handles the Argument case. So the datatable of executed cucumber tests which has Argument type will display correctly on the report but the docstring will be missed.

This fix adds the logic to handle when the argument property is a string.

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)

Reviewers: @webdriverio/project-committers

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented May 19, 2023

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: ductoan0295 / name: Toan (6ce9b88)

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.

Awesome, LGTM 👍

@christian-bromann christian-bromann added the PR: Polish 💅 PRs that contain improvements on existing features label May 22, 2023
@christian-bromann christian-bromann merged commit cbc45ac into webdriverio:main May 22, 2023
@christian-bromann
Copy link
Member

Congratulations on your first WebdriverIO contribution! This project can't live without the participation of the community. We would love to see more from you, so let us know if we can help to find interesting areas for you to contribute to. We appreciate you 🙏 ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: Polish 💅 PRs that contain improvements on existing features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants