Skip to content

Commit 356ebec

Browse files
committed
test(settle): name the capture the dismissal fixture actually drives
A ref press resolves against the tree the session already holds and captures nothing before the action, so the fixture's first capture is the settle loop's own stale-surface sample, not a selector resolution. The comment described the wrong producer for that sample.
1 parent 6bf2042 commit 356ebec

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎src/commands/interaction/runtime/settle-dismissal-confirmation.test.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ function pressAgainstPresentedSurface() {
2323
stored: before,
2424
captureSnapshot: () => {
2525
captures += 1;
26-
// Capture 1 = selector resolution (baseline). Captures 2+ = the settle loop.
26+
// A ref press resolves against the tree the session already holds and captures nothing before
27+
// the action, so every call here is the settle loop's own sample: capture 1 still shows the
28+
// presented surface, captures 2+ the dismissed tree.
2729
return { snapshot: captures === 1 ? before : welcomeSnapshot() };
2830
},
2931
});

0 commit comments

Comments
 (0)