You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
🐞 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:
You are calling test.beforeEach() in a configuration file.
You are calling test.beforeEach() in a file that is imported by the configuration file.
You have two different versions of @playwright/test. This usually happens
when one of the dependencies in your package.json depends on @playwright/test.
📸 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.
The text was updated successfully, but these errors were encountered:
🐞 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:
when one of the dependencies in your package.json depends on @playwright/test.
📸 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.
The text was updated successfully, but these errors were encountered: