Skip to content

Turn any idea, plan, or codebase into a beautiful interactive diagram. An agent skill for Claude Code, Codex, and more.

fix(experiment): report browser interaction exceptions clearly

杨嘉伟a996c9675614
diff --git a/experiments/node-index-rows/README.md b/experiments/node-index-rows/README.md
index 6820e884..3bce96bd 100644
--- a/experiments/node-index-rows/README.md
+++ b/experiments/node-index-rows/README.md
@@ -41,10 +41,11 @@ using a separate experiment attribute. These screenshots test the CSS proposal,
not a shipped narrow-screen reader behavior. Whether to expose that index on
mobile remains a product decision.
-The browser reports no persistent focus preview after a frame on either the
-baseline or candidate, while pointer-enter preview and click selection work.
-This unchanged baseline behavior must not be reported as a newly fixed
-keyboard-preview feature.
+The saved observations report no persistent focus preview after a frame on
+either baseline or candidate. The script only compares `focusPreview` for
+equality between them; it does not independently verify keyboard focus-preview
+behavior. Pointer-enter preview and click selection work. These results must
+not be reported as a newly fixed or verified keyboard-preview feature.
Visually reviewed the unselected Sample Web App desktop comparison and the
long-text narrow candidate. Group membership is clear; desktop whitespace is
diff --git a/experiments/node-index-rows/compare.mjs b/experiments/node-index-rows/compare.mjs
index 46e75999..d64e07c4 100644
--- a/experiments/node-index-rows/compare.mjs
+++ b/experiments/node-index-rows/compare.mjs
@@ -92,6 +92,7 @@ try {
button.click(); await new Promise(r=>requestAnimationFrame(r));
return {focused, focusPreview, hoverPreview, id:button.dataset.outlineNode, selected:button.getAttribute('aria-current')};
})()` });
+ assert.equal(interaction.exceptionDetails, undefined);
assert.equal(interaction.result.value.focused, true);
assert.equal(interaction.result.value.selected, 'true');
if (!candidate) baselineInteraction = interaction.result.value;