Skip to content

Commit 19c8aab

Browse files
committed
efftriage: rule T14 for a checked-state assertion on the wrong node (A46, MTE-5827)
The never-translate conversion's real failure — mozVerifyElementIsChecked against a node that carries no state — came back as "no rule matched". It now names gotcha A46 and both halves of the fix: assert `selected` rather than `checked`, and match on the MERGED tree. This is the shape behind every legacy test that asserts checked state via positional UiSelector().index(n), so it will come up again. The first draft over-matched. Keying on "' is (not )?checked" also hit the `[CMD] Verifying ... is checked...` and `[OK] ... is checked` lines of runs that PASSED that assertion and failed for unrelated reasons, and it silently stole the diagnosis from two labelled gap cases (a keyboard-close PerformException and the ads-client NoHandle crash). The corpus tripwire caught it immediately — the second time in this batch that a new rule's blast radius was wider than the case that motivated it, so the matcher now requires the [ERR] marker. Fixture keeps the run as labelled evidence, including the detail that it predates the ScreenDump those verbs now emit, which is what made it opaque in the first place.
1 parent cb8b83b commit 19c8aab

5 files changed

Lines changed: 929 additions & 0 deletions

File tree

‎tae-conversion/CHANGELOG.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ verdict semantics, changed flags. `git log` has the rest.
4646
test reported `outcome: pass` having asserted nothing. `outcome` is now `skipped` when nothing ran and
4747
`partial` when only some tests did, both exiting **5** (new code: ran, but the verdict is incomplete).
4848
`effverify` already scored these correctly, so a disagreement between the two was the tell.
49+
- `efftriage.py` — new rule **T14** for gotcha **A46**: a checked-state assertion that failed because the
50+
node it matched does not carry the state. Compose toggle/radio rows keep `selected` on the MERGED row and
51+
blank the switch with `clearAndSetSemantics`, so `mozVerifyElementIsChecked` can never pass and
52+
`COMPOSE_BY_TEXT` resolves a stateless descendant. This is the shape behind legacy tests that assert
53+
checked state via positional `UiSelector().index(n)`, so it will recur. (MTE-5827)
4954
- `efftriage.py` — new rule **T11** for the above. It reads the per-test statuses rather than `outcome`,
5055
because the field that should raise the alarm was the one lying. On its first run over the existing corpus it
5156
found **2 silently skipped tests** in an earlier 10-test run that nothing had ever reported.

0 commit comments

Comments
 (0)