From 693ed9b19e03f7d29ef188e8b71d6f9485093c8b Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Thu, 13 Oct 2022 19:38:25 +0300 Subject: [PATCH] chore: wire sourcesChanged event to the ProtocolHandler (#18044) https://github.com/microsoft/playwright/issues/18043 --- packages/playwright-core/src/cli/driver.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/playwright-core/src/cli/driver.ts b/packages/playwright-core/src/cli/driver.ts index 3733a7f784..f19c9ba2c1 100644 --- a/packages/playwright-core/src/cli/driver.ts +++ b/packages/playwright-core/src/cli/driver.ts @@ -93,6 +93,9 @@ class ProtocolHandler { this._controller.on(DebugController.Events.InspectRequested, ({ selector, locators }) => { process.send!({ method: 'inspectRequested', params: { selector, locators } }); }); + this._controller.on(DebugController.Events.SourcesChanged, sources => { + process.send!({ method: 'sourcesChanged', params: { sources } }); + }); } async resetForReuse() {