Files
magpie/internal/gui
yetone 17d230d65f gui tests: account-eye reads an eye again when a re-render replaced its card (#5052)
The Usage card test's first read, opacity(card(ME).locator(".acct-eye")),
came back '' in Chromium under parallel runs. Instrumented on mica, every
such read was of a button no longer in the document (isConnected false,
an empty computed style): a re-render replaced the card between the
locator's resolve and the evaluate. The helper now reads again, which
resolves the locator afresh, until the element is attached (at most 21
reads; it never waits a fixed time).

Run on mica at this head (origin/main 2e1c0a377 plus this file), 8
parallel runs of account-eye.test.cjs, both engines:
- before: the Usage-card test alone, 8 runs, 32 of 40 red at line 294;
- after: 8 of 8 runs pass 30 of 30, 240 of 240.

Not changed: why the Usage page re-renders the card once more after
its first .quota-alias shows. That second render is expected (a later
poll repaints), and nothing a user sees depends on the same element
staying.
2026-11-15 14:26:16 +08:00
..
…
…
…