vitalets / playwright-bdd

BDD testing with Playwright runner
https://vitalets.github.io/playwright-bdd/
MIT License
287 stars 33 forks source link

Bug: Getting testInfo._runAsStep is not a function after updating to Canary playwright #119

Closed NikkTod closed 5 months ago

NikkTod commented 6 months ago

I am using the Decorators syntax and wanted to try a new feature in playwright, so I updated to 1.43.0-alpha-2024-03-26

With this playwright version if I try to run a test I get an error:

image

image

Environment node: v18.14.0 playwright-bdd: v6.0.1 playwright: 1.43.0-alpha-2024-03-26 cucumber: v10.3.1

vitalets commented 6 months ago

Thanks for reporting, will investigate. Also I will add Playwright canary to test suite to detect such issues earlier.

vitalets commented 6 months ago

There are two pending issues with upcoming Playwright 1.43. Addressed them in the Playwright repo:

jonyo commented 5 months ago

It seems Playwright 1.43.0 shipped with the issues intact, is there a workaround for this? We don't use decorators but do use tags and are getting that error.

Is the workaround to pin to the 1.42.1 for now?

vitalets commented 5 months ago

@jonyo please check on just released playwright-bdd@6.1.0, it should work. Feel free to re-open if there are any issues.