Commit Graph
2 Commits
Author SHA1 Message Date
yetoneandvincent 549813abb5 gui tests: every short default gives navigation a minute, and CI runs the browser-free guards (#5425)
nav-timeout.test.cjs was red on main since #5425 was filed (11-06),
first for four files and now for 24: each new GUI test copied
page.setDefaultTimeout(5000) without a navigation timeout, and nothing
caught it because CI runs no GUI file. Each short default now sits
beside page.setDefaultNavigationTimeout(60000); clicks and waits keep
their 5s/6s/8s/30s bar. skygunner's 10275d5a6 did the same for the nine
files listed on 11-08, and was never taken; this covers those and the 15
added since.

The class: nav-timeout, i18n-keys and i18n-en-no-cjk read the sources
and need no browser, and LESSONS.md records each of them red on main
after a push that ran chosen GUI files. test.yml's Linux cli job, which
already sets up Node 22, now runs them, so the push that adds the next
offender goes red on CI.

Run (mica; mote was at load 26):
- node --test nav-timeout, i18n-keys, i18n-en-no-cjk at this tree on
  origin/main b2b3d488c: 9/9 ok.
- usage-drag, form-align, accounts-switch-alone (changed files, both
  engines, every language): 34/34 ok.
- Broken by hand: origin/main's usage-drag copied in beside the fix,
  nav-timeout red, naming it.
Not run: the other 21 changed files in a browser (one added line each)
and the whole GUI suite; both machines were running other sessions'
GUI runs.

Co-authored-by: vincent <webmaster@palmit.com.au>
2026-11-18 02:24:05 +08:00
yetone de13afbf6f gui: Test models draws with a provider's ticked image models (AlphaChatFun on X)
A provider with image models and no chat models answered "Pick a model
first" to Test models, since the list it tests is the chat models agents
see. The backend already draws a tiny image for an image model id, so with
no chat models the ticked image models are sent to test instead. Image
models stay out of the Agents list on purpose; Settings > Models > Images
picks one.

Run: new image-models-test.test.cjs and image-models-hide.test.cjs in
chromium and webkit, five languages, 1000 and 360px (74 pass, wsl-run);
the new file is red (11 of 11 in chromium) with the app.js change stashed.
Not tried: a real image provider account; the whole GUI suite (no new API
call).
2026-11-11 18:24:47 +08:00