Upon receiving a page that logs an object to the console, I encountered an issue when trying to access this object using getBrowserConsoleMessages(). The object appeared as the String "[object Object]" in the console, making it impossible for me to parse and access its properties. Is there something crucial that I am overlooking?
<!DOCTYPE html>
<html>
<body>
<script>console.log({message: 'Hello, world!'});</script>
</body>
</html>
fixture.page("http://127.0.0.1:5500/test.html")("Check page");
test("Console accessible", async t => {
const { log } = await t.getBrowserConsoleMessages()
console.log(JSON.parse(log[0]).message)
})