playwright icon indicating copy to clipboard operation
playwright copied to clipboard

[BUG]. Extension does not recognize tests when using a custom fixture.

Open klendathu667 opened this issue 1 month ago • 1 comments

The Run Test code lens does not appear when using custom fixtures. Our test repository does not use

const { test } = require('@playwright/test') // or import { test } from '@playwright/test'

But we use a custom fixture that extends test so our import is

const { test, expect } = require('@qe/fixtures')

According to what I found, The Playwright extension only recognizes tests imported from @playwright/test. When you use a custom wrapper like @qe/fixtures, the extension can't detect your tests and won't show the "Run Test" code lens.

Can we add a configuration option to the extension to allow us to point the extension to the custom fixture? Or have it auto-detect the import so the code lens is available?

Thanks

klendathu667 avatar Dec 08 '25 16:12 klendathu667

Hi! Could you provide us with a reproduction repo for this? This should definitely be working out of the box.

Skn0tt avatar Dec 08 '25 17:12 Skn0tt

Closing as stale. Feel free to open a new issue if you come up with a repro.

Skn0tt avatar Dec 12 '25 15:12 Skn0tt