Improve playwright debug logging

This commit is contained in:
Daniel Imms
2023-09-08 07:46:45 -07:00
parent f23af3661b
commit 66a6ecea14
+1 -1
View File
@@ -383,7 +383,7 @@ export async function pollFor<T>(page: playwright.Page, evalOrFn: string | (() =
const result = typeof evalOrFn === 'string' ? await page.evaluate(evalOrFn) : await evalOrFn();
if (process.env.DEBUG) {
console.log('pollFor result: ', JSON.stringify(result));
console.log('pollFor\n actual: ', JSON.stringify(result), ' expected: ', JSON.stringify(val));
}
if (!deepEqual(result, val)) {