The fixture's rests ended 3 minutes after the module loaded. Under load
(71 files at --test-concurrency=6) the webkit half ran later than that,
so p2 and p3 were no longer resting and "6 available · 2 resting" read
"8 available" (3 webkit languages red). The page is told the time of
each poll, so the rest had simply expired.
Run: with the file's `now` moved 4 minutes back to inject the delay,
webkit was 15/20 before and 20/20 after; the file alone, both engines,
40/40.
Cause: 18e82adc6 (the sidebar). From 1024 points wide the page sits
beside the sidebar, and a width change lets go of what the last click
held (heldWidth). Both are intended: a sidebar like a Mac app's, and a
relayout isn't the click's doing. That commit updated the tests whose
window is 1024+, but missed these three. Each now presses a control that
is out of sight or under a bar:
- routing-sessions ("background memory groups"): after the resize from
1100 to 560, By request is at y=902 in an 800px window, with scrollTop
0. Before 18e82adc6 the click's hold kept scrollTop at 296, and the
button was at y=606.
- pick-skills: pdf's row is at 683-750. That is partly under the sticky
bar Select brings up (664-712), and the view ends at 732. Before, the
row was wholly below the view (715-782), and Playwright scrolled it.
- routing-group-fold: with the pool open, the Team and Big folds are
under the window's foot (en, ja, de).
The app puts back any scroll that isn't the reader's, Playwright's
included. Playwright doesn't scroll a control that is partly in sight at
all. So in WebKit the click waits ("element is outside of the viewport",
"<footer class=foot> intercepts pointer events") until it times out.
Chromium gets through some of these by a few pixels.
Change: reader.cjs gets reach(page, locator). It is inView for any
page: it wheels the control's own .view until the control is wholly
inside it and elementFromPoint at its centre is the control. The three
tests call it before those clicks. Nothing is loosened: every assertion
is unchanged, and the press is still a real click on the control.
Run (worktree on origin/main 31c1e3ab1, playwright 1.62.0, each file
alone):
- routing-sessions: 19/19 in both engines. Before: 18/19 in WebKit.
- pick-skills: 3/3 in both. Before: 0/3 in WebKit.
- routing-group-fold: 20/20 in both. Before: 17/20 in WebKit.
- The bisect for each lands on 18e82adc6.
- inView and every other export of reader.cjs is unchanged. The 37
resize/scroll files, several of which use inView, are green apart
from #1863, which fails on 31c1e3ab1 too.
Not run: the full GUI suite.
Aiirobyte: a routing group of many accounts took so much of the page that
editing the groups below it was a long scroll. The stage folded only runs
of three or more API keys (#1319).
Now:
- Three or more accounts of one provider side by side for one model fold
into one row the way keys do: the count, the lit one and what it does,
how many are available and resting. A request to a folded account flies
to the fold.
- A group in the group's heading folds from a click, Enter or Space (it is
a button now, with a chevron). Folded, it says "{n} on" and what its
seats do together; requests under it fly to the heading and a failure
tags it.
- Accounts and keys sums a provider's accounts up in one row too.
- Keys start folded as before. Accounts and group headings start open
under six, folded from six. What the reader opens is kept in
magpie.routingKeysOpen as before, what they fold in the new
magpie.routingFolded, so both directions survive a reload.
- Redraws go through steady(), so a click keeps the page where it is.
- Strings in en, zh, zh-TW, ja, de. Display only: the gateway's order and
choice don't change.
routing-account-order now opens the relay's key fold by :not(.open),
since the account folds there start open.
Run: new internal/gui/tests/routing-group-fold.test.cjs (defaults, click
and Enter in place with the page not moving, kept across reloads both
ways, a live request to a folded group heading with its tag, Accounts and
keys folds, 420px fit) in Chromium and WebKit, en/zh/zh-TW/ja/de, 40/40.
On origin/main's assets it fails (no account fold, heading not foldable).
All routing-* tests, panel-routing, click-scroll, gui-ja, gui-de,
gui-zh-tw and i18n-keys: 255/255 in Chromium and 255/255 in WebKit. Not
tried in the real window with a live gateway.