From 4338147993d05372fc05da7b428e21cf0eb547b2 Mon Sep 17 00:00:00 2001 From: yetone Date: Wed, 18 Nov 2026 14:30:12 +0800 Subject: [PATCH] gui tests: settings-groups expects Claude's Spend extra usage row (#6597) d0fb3c008 (11-13) put "Spend extra usage" in Claude's provider editor, beside the short system prompt, and settings-groups' list of Claude's rows wasn't brought up to it: 6 of 14 red on main since, both engines, en and zh. The row is meant to be there, so the test now lists it. Run (mica, at this tree, origin/main 07d19510f): settings-groups 14 of 14 pass; 6 of 14 red before this change. --- internal/gui/tests/settings-groups.test.cjs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/gui/tests/settings-groups.test.cjs b/internal/gui/tests/settings-groups.test.cjs index cd33c4c0a..8284dc99e 100644 --- a/internal/gui/tests/settings-groups.test.cjs +++ b/internal/gui/tests/settings-groups.test.cjs @@ -61,11 +61,11 @@ function server(lang, posts, over) { const L = { en: { - lean: "Short Claude system prompt", reset: "Warm up on reset", daily: "Daily warm-up", checkin: "Daily check-in", + lean: "Short Claude system prompt", extra: "Spend extra usage", reset: "Warm up on reset", daily: "Daily warm-up", checkin: "Daily check-in", on: "On", off: "Off", started: "last started", checked: "Ann checked in today +2, 3-day streak", }, zh: { - lean: "精简 Claude 系统提示词", reset: "窗口重置时预热", daily: "每日定时预热", checkin: "每日自动签到", + lean: "精简 Claude 系统提示词", extra: "花费额外用量", reset: "窗口重置时预热", daily: "每日定时预热", checkin: "每日自动签到", on: "开启", off: "关闭", started: "上次启动于", checked: "Ann 今日已签到 +2, 连续 3 天", }, }; @@ -216,7 +216,7 @@ for (const engine of (process.env.BROWSER ? [process.env.BROWSER] : ["chromium", await edit("claude"); assert.deepEqual(await panes(page), ["claude"]); // Claude Code's own run row is Claude's too - assert.deepEqual(await visibleRows(), [w.lean, w.reset, w.daily]); + assert.deepEqual(await visibleRows(), [w.lean, w.extra, w.reset, w.daily]); await thumbsUnderPicks("claude"); await press(page.locator(".editor #claudeWarmSegs .opt").nth(2)); await last("claudeWarmup", "all");