Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

fix: correct pending navigation log spacing (#41949)

Simon Knott2934858481d2
diff --git a/packages/playwright-core/src/server/page.ts b/packages/playwright-core/src/server/page.ts
index 6204b2a3db..0baec6bc59 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<PageEventMap> {
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)