microsoft / playwright

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
https://playwright.dev
Apache License 2.0
66.83k stars 3.67k forks source link

qase.io reporter is not working with playwright 1.22 and 1.23 #15167

Closed NataliaKlepik closed 2 years ago

NataliaKlepik commented 2 years ago

Context:

Describe the bug

Error: Cannot find module 'chalk' Require stack: \node_modules\playwright-qase-reporter\dist\index.js \node_modules\@playwright\test\lib\loader.js \node_modules\@playwright\test\lib\runner.js \node_modules\@playwright\test\lib\cli.js \node_modules\playwright-core\lib\cli\cli.js \node_modules\playwright-core\cli.js \node_modules\@playwright\test\cli.js

rwoll commented 2 years ago

Thanks for the report. This looks like an issue with qase's package and dependencies (and they have a fix—although maybe unreleased at this point): https://github.com/qase-tms/qase-javascript/issues/207

Please raise an issue there in the qase repo.

As a work around, you could likely try manually installing and declaring a dep on chalk (via npm i chalk@^4.1.0) on behalf of the qase package.