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
Create a new folder and launch in code with playwright extension installed.
Use CTRL-P: Test: Install Playwright and select a vanilla project with chromium
Load the test lab tab and expand the testing.
Attempt to run 'has title' test with the debug option
Expected behavior
I expect the test to run in the VsCode debugger allowing me to set breakpoints etc. This worked with previous version of playwright extension
Actual behavior
I see the following error.
Error: Playwright Test did not expect test() to be called here.
Most common reasons include:
- You are calling test() in a configuration file.
- You are calling test() 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.
at TestTypeImpl._currentSuite (c:\dev\git\temp\temp2\node_modules\playwright\lib\common\testType.js:71:13)
at TestTypeImpl._createTest (c:\dev\git\temp\temp2\node_modules\playwright\lib\common\testType.js:80:24)
at node_modules\playwright\lib\transform\transform.js:256:12
at Object.<anonymous> (c:\dev\git\temp\temp2\tests\example.spec.ts:3:5)
Additional context
Note this was first seen in my normal project so I tried with vanilla project to see if it was something about my project, but see the same error on the sample project tests.
Last Good Version
Extension version 1.1.2
First Bad Version
Extension version 1.1.3
Steps to reproduce
Expected behavior
I expect the test to run in the VsCode debugger allowing me to set breakpoints etc. This worked with previous version of playwright extension
Actual behavior
I see the following error.
Additional context
Note this was first seen in my normal project so I tried with vanilla project to see if it was something about my project, but see the same error on the sample project tests.
VScode Extension version is 1.1.3
Environment
The text was updated successfully, but these errors were encountered: