Open alendo opened 8 months ago
I'm hitting the same issue for what it's worth
I've also got the same issue as above.
So I think I've found what's wrong. You'll need to update playwright in the project to make sure you can run the tests in terminal using scripts.
Steps:
npm install -D @playwright/test@latest
Note that it may tell you to run the audit. Read the instructions and run the audit to fix anything.
🐞 Describe the question: I'm not able to run the tests for Chapter-2 in the terminal using scripts. It is giving me error every time I run tests:
Error: Playwright Test did not expect test.beforeEach() to be called here. Most common reasons include:
📸 Screenshots/GIFs/Videos:
Config file is exact as repo on GitHub:
🛝 Additional context: I deleted the repo locally and cloned it again but still getting the error. Oddly enough, I can run the tests with Test Explorer
🎡 A picture of your pet or a toy or something really cool: Thanks in advance for the help.