playwright-community / playwright-go

Playwright for Go a browser automation library to control Chromium, Firefox and WebKit with a single API.
https://playwright-community.github.io/playwright-go/
MIT License
1.94k stars 144 forks source link

refac(test): omit `defer AfterEach()` via t.Cleanup #429

Closed canstand closed 3 months ago

canstand commented 3 months ago

Closing the BrowserContext multiple times is no longer a problem. Cleaning with t.Cleanup can simplify the code.