Skip to content

(@wdio/browser-runner): allow to take screenshots and pdf when running component tests#11068

Merged
christian-bromann merged 4 commits intomainfrom
cb-enable-screenshot-in-browser-tests
Sep 2, 2023
Merged

(@wdio/browser-runner): allow to take screenshots and pdf when running component tests#11068
christian-bromann merged 4 commits intomainfrom
cb-enable-screenshot-in-browser-tests

Conversation

@christian-bromann
Copy link
Member

Have you read the Contributing Guidelines on issues?

WebdriverIO Version

latest

Node.js Version

latest`

Mode

WDIO Testrunner

Which capabilities are you using?

n/a

What happened?

calling browser.saveScreenshot raises the following error, when running component tests:

[chrome 116.0.5845.96 mac os x #0-0] callback must be a function
[chrome 116.0.5845.96 mac os x #0-0] TypeError: callback must be a function
[chrome 116.0.5845.96 mac os x #0-0]     at validateCallback (http://localhost:55104/node_modules/@jspm/core/nodelibs/browser/fs.js:1921:47)

What is your expected behavior?

it should work.

How to reproduce the bug.

n/a

Relevant log output

n/a

Code of Conduct

  • I agree to follow this project's Code of Conduct

Is there an existing issue for this?

  • I have searched the existing issues

@christian-bromann christian-bromann changed the title [🐛 Bug]: allow calling saveScreenshot in component tests (@wdio/browser-runner): allow to take screenshots and pdf when running component tests Sep 2, 2023
@christian-bromann christian-bromann added PR: Bug Fix 🐛 PRs that contain bug fixes and removed Bug 🐛 labels Sep 2, 2023
@christian-bromann christian-bromann merged commit 4b0ecd4 into main Sep 2, 2023
@christian-bromann christian-bromann deleted the cb-enable-screenshot-in-browser-tests branch September 2, 2023 06:44
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.

1 participant