Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[REGRESSION]: The "Playwright Test for VSCode" extension no longer works with 1.26 version update #17529

Closed
rkeyes42 opened this issue Sep 22, 2022 · 1 comment

Comments

@rkeyes42
Copy link

rkeyes42 commented Sep 22, 2022

The test runs fine from the command line but NOT from the Playwright Test for VSCode extension

Here is the error:
Error: tests\Regression_STAGE.spec.ts:25:12: 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 node_modules@playwright\test\lib\util.js:216

    214 |
    215 | function errorWithLocation(location, message) {

216 | return new Error(${formatLocation(location)}: ${message});
| ^
217 | }
218 |
219 | function expectTypes(receiver, types, matcherName) {

at errorWithLocation (C:\playwright_tests\node_modules\@playwright\test\lib\util.js:216:10)
at TestTypeImpl._ensureCurrentSuite (C:\playwright_tests\node_modules\@playwright\test\lib\testType.js:80:41)
at TestTypeImpl._createTest (C:\playwright_tests\node_modules\@playwright\test\lib\testType.js:89:24)
at Function.only (C:\playwright_tests\node_modules\@playwright\test\lib\transform.js:267:12)
at Object.<anonymous> (C:\playwright_tests\tests\Regression_STAGE.spec.ts:25:12)

=================
no tests found.

@rwoll
Copy link
Member

rwoll commented Sep 22, 2022

Folding into #17500

@rwoll rwoll closed this as completed Sep 22, 2022
@rwoll rwoll added the triaging label Sep 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants