mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-07 18:26:17 +00:00
test(core): address review feedback on T6a / T10 / T7 stubs (#1268)
T6a (#1263): add fromTo corpus script (third parser method) with negative position values to exercise UnaryExpression arm; drop unused breatheRepeats from COMPLEX_SCRIPT; generate fromto.parsed.json + fromto.serialized.js goldens. T10 (#1262): split applyDraft move/resize into two stubs; add applyDraft edge- case describe block (concurrent gestures, idempotent revert, playhead-change stability, nested sub-composition root); add getElementTimings stub for absent data-start/end on a data-hf-id element. T7 (#1267): expand to full parity with T3 — add text-content, attribute, and fallthrough stubs (Core sourceMutation supports all patch types via patchElementInHtml).
This commit is contained in:
@@ -365,8 +365,16 @@ describe("probeElementInSource", () => {
|
||||
// T7 — data-hf-id targeting (spec for R1).
|
||||
// R1 adds `hfId?: string` to SourceMutationTarget and a `[data-hf-id="…"]` branch
|
||||
// in findTargetElement (sourceMutation.ts:34). Convert from it.todo in the R1 PR.
|
||||
// Covers the same surface as T3 (Studio sourcePatcher) — Core sourceMutation supports
|
||||
// all patch types (inline-style, attribute, text-content) via patchElementInHtml.
|
||||
describe("T7 — data-hf-id targeting (spec for R1)", () => {
|
||||
it.todo("patches element by data-hf-id when no HTML id attribute is present");
|
||||
it.todo("updates inline style by data-hf-id when no HTML id attribute is present");
|
||||
|
||||
it.todo("updates text content by data-hf-id");
|
||||
|
||||
it.todo("updates attribute by data-hf-id");
|
||||
|
||||
it.todo("data-hf-id attribute survives the patch (can be targeted again)");
|
||||
|
||||
it.todo("hfId lookup falls through to selector when hfId is not found in the document");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user