From 5cdfe5a92db2ff35419909ccd0d9a4a285e14ada Mon Sep 17 00:00:00 2001 From: yetone Date: Tue, 6 Oct 2026 04:44:27 +0800 Subject: [PATCH] =?UTF-8?q?gui=20tests:=20gateway-model-info=20expects=20a?= =?UTF-8?q?=20routing=20group's=20tooltip=20as=20afc6623c=20(#885)=20words?= =?UTF-8?q?=20it=20=E2=80=94=20"Reasoning:=20low,=20medium,=20high=20(the?= =?UTF-8?q?=20levels=20every=20model=20in=20it=20has)"=20and=20"Accepts=20?= =?UTF-8?q?images=20(one=20of=20its=20models=20does)",=20since=20#756=20on?= =?UTF-8?q?e=20member=20that=20sees=20is=20enough.=20Passes=20in=20Chromiu?= =?UTF-8?q?m=20and=20WebKit;=20failed=20on=206e623d16.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/gui/tests/gateway-model-info.test.cjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/gui/tests/gateway-model-info.test.cjs b/internal/gui/tests/gateway-model-info.test.cjs index 22e3aedd..e78f82e7 100644 --- a/internal/gui/tests/gateway-model-info.test.cjs +++ b/internal/gui/tests/gateway-model-info.test.cjs @@ -3,7 +3,7 @@ // by id, name, provider and a group's models, and each row ends with what // agents are told of the model — its reasoning levels, whether it takes // images, its context, its reply limit — the full detail in the chips' tooltip; a routing -// group's are what its models all have, its tooltip naming them. +// group's levels are what its models all have, its images any one's and its context the largest, its tooltip naming them. const assert = require("node:assert/strict"); const fs = require("node:fs/promises"); const path = require("node:path"); @@ -102,7 +102,7 @@ for (const engine of (process.env.BROWSER ? [process.env.BROWSER] : ["chromium", assert.equal(i.img, 1); i = await info("group/smart"); assert.deepEqual(i.chips, ["low–high", "", "272K"]); - assert.equal(i.tip, "Reasoning: low, medium, high\nAccepts images (every model in it does)\nContext: 272,000 tokens (the largest of its models')\nOutput: up to 64,000 tokens\nModels: acme/gpt-5.5-mini, zeta/kimi-k3"); + assert.equal(i.tip, "Reasoning: low, medium, high (the levels every model in it has)\nAccepts images (one of its models does)\nContext: 272,000 tokens (the largest of its models')\nOutput: up to 64,000 tokens\nModels: acme/gpt-5.5-mini, zeta/kimi-k3"); // the chips sit at the row's end, before its copy button const [infoBox, copyBox, whoBox] = await Promise.all([".minfo", ".copy", ".who"].map((s) => rowOf(page, "acme/gpt-5.5").locator(s).boundingBox())); assert(infoBox.x > whoBox.x && infoBox.x + infoBox.width <= copyBox.x + 1, "info between the name and the copy button");