I find it useful to write test steps in playwright because it clarifies the meaning behind the code as well as making the traceview more coherent.
Since i like cucumber's Given/When/Then approach and codecept.io dsl approach - i looked for a way to write bdd in playwright with typings support without the complex setup and without the need to write feature files - using bdd just for code.
the outcome of that is Talewright:
I believe this library may become useful for others as well.
appreciate any feedback, requests and pr's as well.
That looks nice indeed.
But what I imagine BDD, it should comprise a set of high-level specification, leaving the details to the implementation and unit tests. But I get the effort.