Example for bug and its workaround
In short, looks like its likely related to context not being saved outside of the function. Garbage collection issue maybe? The example of "no longer working" has been working just fine since I've been using playwright. The workaround is included (note that without afterall()
the traces still end up faulty)