Skip to content

Update runner index.ts due to a logs.map error is not a function#10997

Merged
christian-bromann merged 2 commits intowebdriverio:mainfrom
carri747:log-map-error
Aug 23, 2023
Merged

Update runner index.ts due to a logs.map error is not a function#10997
christian-bromann merged 2 commits intowebdriverio:mainfrom
carri747:log-map-error

Conversation

@carri747
Copy link
Contributor

Add a new condition to check logs structure is an array.

#10763 (comment)

Proposed changes

Sometime we got a structure that is not an array and I added a new condition to check if the logs variable is array. In the case that the logs was not an array I have a error and the session was no reload properly.

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

add a new condition to check logs structure is an araay
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Aug 22, 2023

CLA Signed

The committers listed above are authorized under a signed CLA.

@carri747 carri747 changed the title Update index.ts Update runner index.ts due to a logs.map error is not a function Aug 22, 2023
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.

We don't need the truthy check when we check if it is an array anyway.

Also mind signing the CLA?

@christian-bromann christian-bromann added the PR: Bug Fix 🐛 PRs that contain bug fixes label Aug 23, 2023
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, thanks 👍

@christian-bromann christian-bromann merged commit 1bdfa5a into webdriverio:main Aug 23, 2023
@christian-bromann
Copy link
Member

Congratulation on your first WebdriverIO contribution 🎉 Happy to support you making more contributions to the project. Don't hesitate to reach out on Discord or in the issues.

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