playwright-go
playwright-go copied to clipboard
Need examples how to use with go testing library
Hi, guys. I recently started to be familiar with playwright-go (In my work I use playwright with node.js). But didn't found any example how to use it with go testing package. It would be great use them together. It looks logical. First of all, I mean that it is unclear how to configure and run playwright before all tests, so as to have access to the context in each test. Is it possible at all now?
It's nice to have examples of usage with go testing library! It should be good to port some examples in node.js repo to this. (maybe after finished implementation of web first assertions #271 to make examples with them)
Anyway, as for the use of playwright-go with go testing library, it would be helpful to refer to the tests directory in which test files are located. You can find some good references about how to setup configuration before/after each tests in go's testing way.
You can refer to helper_test.go now.