Unverified Commit 0b1604a8 authored by Sebastian "Sebbie" Silbermann's avatar Sebastian "Sebbie" Silbermann Committed by GitHub

[test] Properly log `framereceived` payload (#91266)

parent 5ef117cd
...@@ -333,8 +333,12 @@ export class Playwright<TCurrent = undefined> { ...@@ -333,8 +333,12 @@ export class Playwright<TCurrent = undefined> {
websocketFrames.push({ payload: frame.payload }) websocketFrames.push({ payload: frame.payload })
if (tracePlaywright) { if (tracePlaywright) {
const { payload } = frame
page page
.evaluate(`console.log('received ws message ${frame.payload}')`) // Note that passing the payload as a an argument is 2 orders of magnitude more expensive in Playwright.
.evaluate(
`console.log('received ws message ${JSON.stringify(payload)}')`
)
.catch(() => {}) .catch(() => {})
} }
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment