fix(record): drop 'hover' in tracev2 for compatible

This commit is contained in:
“haonan” authored and GitHub committed 2026-08-23 21:26:41 +08:00
1 parent f69d1aecd8
commit a74f5b136e
4 files changed
+26 -16

No files matched your search

@@ -1200,7 +1200,8 @@ describe("recorded user steps reach the exported trace", () => {
const trace = (stopped as RecordStopResult).trace;
expect("version" in trace).toBe(false);
expect("pages" in trace && trace.pages.length).toBeGreaterThan(0);
expect("steps" in trace && trace.steps.map((step) => step.op)).toEqual(["hover", "click"]);
// `hover` has no v2 counterpart on peers that negotiate v2.
expect("steps" in trace && trace.steps.map((step) => step.op)).toEqual(["click"]);
});
it("rejects unsupported trace_version values", async () => {