feat: capture state and element evidence

This commit is contained in:
赵义仑
2026-06-16 19:15:52 +08:00
parent 1324f1882c
commit 581724ea42
6 changed files with 431 additions and 4 deletions

View File

@@ -58,6 +58,42 @@
<button type="submit">Submit search</button>
</form>
<form>
<p>
This unnamed form deliberately contains a long body of descendant text that should remain available as bounded
context evidence but must not be promoted into the anchor name used for element identity. It describes internal
notes, operator workflow details, historical context, and extra explanatory copy that would make a noisy and
unstable identifier if copied into the context anchor name.
</p>
<label>
Unbounded Probe
<input name="unboundedProbe" />
</label>
</form>
<main aria-label="Operations">
<button data-testid="main-action">Main action</button>
</main>
<section aria-label="Duplicate controls">
<button>Duplicate</button>
<button>Duplicate</button>
</section>
<section role="dialog" aria-modal="true" class="open">
<span>Short volatile copy</span>
<button data-testid="short-dialog-action">Short dialog action</button>
</section>
<section role="dialog" aria-modal="true" class="open">
<p>
This unnamed dialog carries noisy descendant copy about multi-step operator notes, escalation background,
support annotations, internal timestamps, and other volatile details that must stay out of the dialog anchor
name while remaining available as bounded context text evidence for nearby actionable controls.
</p>
<button data-testid="dialog-probe">Dialog probe</button>
</section>
<button disabled data-testid="disabled-open">Open disabled panel</button>
<button data-testid="open-settings" onclick="document.getElementById('settings-dialog').classList.add('open')">Open settings</button>
<section id="settings-dialog" role="dialog" aria-modal="true" aria-label="Settings dialog">