test: e2e hygiene — a failing case leaves routeOpts and the popup screen dirty, cascading into unrelated failures #318
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Found by the independent review of #314 (#314 (comment)). Test-harness hygiene, no product defect. Matters because it makes a real failure harder to read, and #287 already means red runs have to be interpreted rather than believed.
Three findings, all in the Chrome suite:
||swallows a zero override.ethCallResult()intests/e2e/network.jsuses||, so adecimalsoverride of0is silently ignored and the default is served instead. A zero-decimal token is a legitimate case and cannot currently be fixtured.routeOptsnor the popup screen. Demonstrated during the review: a deliberate mutation produced 2 real failures but 9 red tests, with cases 48-54 collateral damage from the leaked state. The real signal was buried in noise.Also noted, no action needed unless it bothers you:
mismatchMessageinsrc/shared/transferAmount.jsis an unused export, andtransferAmountUnits("-1", 6, 6n)returns a negative bigint. The latter is unreachable — the send screen validates the amount before it gets there — and carries no funds risk.Definition of done
ethCallResult()distinguishes an absent override from a zero one, and a zero-decimal token can be fixtured.routeOptsand returns the popup to a known screen — afinally, not cleanup on the success path.make test-e2estill passes 54/54, and a deliberately mutated case 43 fails in under 10 seconds with only itself red. State the mutation used and the observed result.make checkgreen.