e2e-tests: Fix "circular structure" error when printing JSON
Created by: mrnugget
This fixes #4326 (closed) by fixing the TypeError
.
What this does not do is get rid of the message completely. Technically it is possible according to this comment, but I couldn't seem to get it to work between webpack/jest/puppeteer. If someone else knows how to set a property on window
on every puppeteer page, then that should lead us to the solution.
Test plan: cd web && yarn run test-e2e