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:
co-authored by
LouisChen
morluto
itsF4LCON
parent
aeee5074d1
commit
0043d9b134
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user