From 1c7873fe2879ecb6c271469626e5d7ca597a154b Mon Sep 17 00:00:00 2001 From: Simon Knott Date: Thu, 23 Jul 2026 12:45:20 +0200 Subject: [PATCH] fix: correct pending navigation log spacing Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: c8568082-cd3f-4aa2-a7fa-15546d4738ff --- packages/playwright-core/src/server/page.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/playwright-core/src/server/page.ts b/packages/playwright-core/src/server/page.ts index 6204b2a3dbea2..0baec6bc59f09 100644 --- a/packages/playwright-core/src/server/page.ts +++ b/packages/playwright-core/src/server/page.ts @@ -553,7 +553,7 @@ export class Page extends SdkObject { if (!mainFrame || !mainFrame.pendingDocument()) return; const url = mainFrame.pendingDocument()?.request?.url(); - const toUrl = url ? `" ${trimStringWithEllipsis(url, 200)}"` : ''; + const toUrl = url ? ` "${trimStringWithEllipsis(url, 200)}"` : ''; progress.log(` waiting for${toUrl} navigation to finish...`); await helper.waitForEvent(progress, mainFrame, frames.Frame.Events.InternalNavigation, (e: frames.NavigationEvent) => { if (!e.isPublic)