From 66a6ecea1483dbf9755a407b9ea9822067ee3a62 Mon Sep 17 00:00:00 2001 From: Daniel Imms <2193314+Tyriar@users.noreply.github.com> Date: Fri, 8 Sep 2023 07:46:45 -0700 Subject: [PATCH] Improve playwright debug logging --- test/playwright/TestUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/playwright/TestUtils.ts b/test/playwright/TestUtils.ts index 0ab95b76..e91b8310 100644 --- a/test/playwright/TestUtils.ts +++ b/test/playwright/TestUtils.ts @@ -383,7 +383,7 @@ export async function pollFor(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)) {