Hello 👋 I have the following decorator
When I decorate a method that makes an API call with it, and try running the test, I get this
This only happen when I run the test with playwright, meaning if I have a .ts
file with a basic script that uses this decorator, I don't get the error.
experimental decorators are enabled in my tsconfig file
This thread is trying to answer question "Why does an error occur when running a test with playwright that uses a decorator in a method making an API call, and how can this issue be resolved?"
You can try compiling tests yourself https://playwright.dev/docs/next/test-typescript#manually-compile-tests-with-typescript and then running, not sure if it will help
Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email luc@ray.run.