gherkin-wrapper icon indicating copy to clipboard operation
gherkin-wrapper copied to clipboard

test location is node_modules/gherkin-wrapper/.../playwright.js

Open cassus opened this issue 1 year ago • 14 comments

Observed behavior

  • In the playwright UI mode the tests show up under node_modules/gherkin-wrapper/lib/wrappers/playwright.js and not in the file where they were defined.
  • The tests doesn't show up in the VSCode plugin at all.
  • If I run playwright:test -- fileName.ts where fileName.ts has the wrapper.test no tests are run.

Expected behavior

  • [x] Option A (ideal): Playwright understood the location of the test as the feature file and line where the Example / Scenario was specified
    • [x] Works for the playwright test runner (visible in reports an UI mode) (see microsoft/playwright/23157)
    • [ ] Works for the vscode test runner
  • [x] Option B (workaround): Playwright understood the location of the test as the TS file where I called wrapper.test.

Playwright_Test

Notes

Maybe this can be done if calling run the test.describe in the file where now we run wrapper.test(${__dirname}/XY.feature)

cassus avatar May 11 '23 19:05 cassus