[BUG]. Extension does not recognize tests when using a custom fixture.
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
Hi! Could you provide us with a reproduction repo for this? This should definitely be working out of the box.
Closing as stale. Feel free to open a new issue if you come up with a repro.