gauge-ts icon indicating copy to clipboard operation
gauge-ts copied to clipboard

Potential Conflict Of source-map-support with playwright

Open Zoupers opened this issue 1 year ago • 2 comments

Describe the bug Potential Conflict of source-map-support usage with Playwright

To Reproduce Steps to reproduce the behavior:

  1. Create a standerd gauge-ts project
  2. implement step using playwright, and throw Error on purpose
  3. run spec using the step defined above
  4. The Error Stacktrace will not refer to the correct position where the Error throw up.

Expected behavior

A clear and concise description of what you expected to happen.

Stacktrace with correctly line number.

Screenshots

If applicable, add screenshots to help explain your problem.

no

Desktop (please complete the following information):

  • OS: [e.g. linux] Windows
  • Gauge and plugin version [run gauge -v] 1.4.3 & 0.1.1
  • Node version [run node -v] v18.14.2
  • Npm version [run npm -v] 9.6.0

Zoupers avatar Apr 13 '23 13:04 Zoupers

This bug may should not be here, but can be a notification if someone else find the same error of the Error traceback info.

Zoupers avatar Apr 13 '23 13:04 Zoupers

After dig into the source, I found it's conflict with @playwright/test which introduce source-map-support.

So if u r using playwright alone, that could be fine. But @playwright/test have some extension of expect that make test more easier. Maybe it can be a feature request to @playwright/test to seperate a @playwright/expect.

Zoupers avatar May 06 '23 15:05 Zoupers