fix(browser): report mismatched event family selection as unknown in capture comparison (#2239)

* fix(browser): report mismatched event family selection as unknown in capture comparison

* fix(browser): retain selected event families and unknown coverage

Fold the complementary implementation from #2253 into the earlier #2239 proposal, retaining the original contribution history.

Co-authored-by: itsF4LCON <107556180+itsF4LCON@users.noreply.github.com>

---------

Co-authored-by: LouisChen <3361008+chqcjq@users.noreply.github.com>
Co-authored-by: morluto <76467478+morluto@users.noreply.github.com>
Co-authored-by: itsF4LCON <107556180+itsF4LCON@users.noreply.github.com>
This commit is contained in:
LouisChen
2026-10-13 02:36:45 +08:00
committed by GitHub
co-authored by LouisChen morluto itsF4LCON
parent aeee5074d1
commit 0043d9b134
13 changed files with 206 additions and 15 deletions
@@ -119,6 +119,21 @@ export const browserStepArtifactsSchema = z.strictObject({
});
export type BrowserStepArtifacts = z.infer<typeof browserStepArtifactsSchema>;
/** Event families a scenario can select for capture. */
export const browserScenarioEventFamilySchema = z.enum([
"console",
"page-errors",
"network",
"websockets",
"frames",
"workers",
"popups",
"downloads",
]);
export type BrowserScenarioEventFamily = z.infer<
typeof browserScenarioEventFamilySchema
>;
const eventBase = {
sequence: z.number().int().min(1),
step_index: z.number().int().min(0),