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

This commit is contained in:
“haonan”
2026-08-24 10:42:45 +08:00
committed by GitHub
parent 1a3d3b7de8
commit 887d1ed0b9
4 changed files with 26 additions and 16 deletions
@@ -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 () => {