fix(browser): capture popup network and report early event gaps (#614)
* fix(browser): capture selected events in popup pages Signed-off-by: Rudy Celekli <47457359+rudycelekli@users.noreply.github.com> * fix(browser): capture popup network and report early event gaps * fix(browser): deduplicate owned popup discovery * test(browser): group popup selection coverage with the scenario event suite Signed-off-by: Rudy Celekli <47457359+rudycelekli@users.noreply.github.com> * test(browser): verify popup evidence through CLI and MCP * fix(browser): expose shared-context event coverage limits --------- Signed-off-by: Rudy Celekli <47457359+rudycelekli@users.noreply.github.com> Co-authored-by: Rudy Celekli <47457359+rudycelekli@users.noreply.github.com> Co-authored-by: morluto <76467478+morluto@users.noreply.github.com>
This commit is contained in:
co-authored by
Rudy Celekli
morluto
parent
5f3ba3e688
commit
f557207887
@@ -163,6 +163,8 @@ export class PlaywrightScenarioSession implements BrowserScenarioSessionPort {
|
||||
);
|
||||
const events = new PlaywrightScenarioEvents({
|
||||
page: opened.page,
|
||||
context: opened.context,
|
||||
ownsContext: scenario.browser.mode === "launch",
|
||||
enabled: new Set(scenario.capture.events),
|
||||
secrets,
|
||||
});
|
||||
@@ -212,6 +214,11 @@ export class PlaywrightScenarioSession implements BrowserScenarioSessionPort {
|
||||
return this.eventCapture.result();
|
||||
}
|
||||
|
||||
/** Preserve event coverage gaps for the aggregate capture's completeness. */
|
||||
eventLimitations(): readonly string[] {
|
||||
return this.eventCapture.limitations();
|
||||
}
|
||||
|
||||
async perform(
|
||||
action: BrowserScenarioAction,
|
||||
signal?: AbortSignal,
|
||||
|
||||
Reference in New Issue
Block a user