Add verify_field: read a field back and confirm the typed value#437
Merged
Conversation
field_entry types and hopes — a slow IME, focus steal, input mask or auto-format can silently drop characters and nothing reads the field back. Distinct from action_effect (any near-target change) and postcondition.text_present (text anywhere). compare_field_value is the pure comparator (exact/trim/ci/normalized/contains); verify_field_value reads via an injectable reader; fill_and_verify types, reads back and retries until it matches.
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 31 |
| Duplication | 0 |
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary
Second feature of the ROUND-15 input-fidelity lane.
field_entrytypes into a control and hopes it landed — a slow IME, focus steal, input mask or auto-format can silently mangle or drop characters, and nothing reads the field back. Distinct fromaction_effect(any near-target change) andpostcondition.text_present(text anywhere on screen) — neither confirms this field equals this value.utils/verify_field/:compare_field_value(pure comparator —exact/trim/ci/normalizedNFKC reusingtext_normalize/contains),verify_field_value(read via injectablereader+ compare),fill_and_verify(type via injectablefiller, read back, retry — optionally clearing first — until match or attempts run out; returns the result +attemptscount).__all__;AC_compare_field_value(pure) /AC_verify_field_value(reads the control's value via the accessibility backend) executor commands; matching read-onlyac_*MCP tools; Script Builder under Flow.fill_and_verify(wraps a typing callable) is the Python-API surface.v210_features_doc.rst+WHATS_NEW.md.Test
test/unit_test/headless/test_verify_field_batch.py— pure compare (exact/trim/ci/contains/normalized NFC-vs-NFD/None-as-empty), verify via injected reader, fill_and_verify first-try / retry-until-match / give-up-after-attempts with injected filler+reader+clear, plus facade + executor/MCP/builder wiring. All 13 green;ruff+bandit+radonclean; no float==; package stays Qt-free.