From f73c2fc8f0ecf19cbe644356dd53609a2d699e9c Mon Sep 17 00:00:00 2001 From: yetone Date: Wed, 4 Nov 2026 22:04:14 +0800 Subject: [PATCH] gui tests: zhipu-team fills the key, not the proxy's password (#4728) "a Zhipu key being added takes its team, DeepSeek's doesn't" filled `.editor.new input[type=password]`, and the new-provider editor now has two: the API key and the proxy's optional password (.proxy-credential). Playwright's strict mode refused the fill, so the case was red in every run, not only under load: 4 of 12 red alone on mote at origin/main 34116ec01, in Chromium and WebKit, en and zh. The locator leaves the proxy's field out, as tencent-access-key and volc-access-key take the first. Before the change, at origin/main 34116ec01: 4 of 12 red with "strict mode violation ... resolved to 2 elements". Run (mote, at the pushed head of this commit and the two after it, bae625cdf on origin/main 8a8079680): - node --test redact-words-import, i18n-en-no-cjk, zcode-site, zcode-site-layout, plugin-moved-signin, plugin-other-ways, zhipu-team, gui-de, gui-ja, gui-zh-tw, i18n-keys, agent-leave-magpie, agent-own-direct, checkin-now-account, checkin-account, plugin-checkin, usage-checkin: 215 of 215 ok. - go test ./internal/gui/...: ok but TestMainWindowCorners/macOS_26_SDK, red the same at origin/main 8a8079680 (#3949, macOS 27 on mote); TestCoreScriptBudget ok. - The whole GUI suite was not run before the push: both test boxes were running other sessions' GUI suites (one suite a machine). It runs after the tag; reds are filed. - Rebased on origin/main d02b8a000 (agent-own-direct, app.js, i18n.js changed there) and run again at the pushed tree: TestCoreScriptBudget, i18n-en-no-cjk, i18n-keys, gui-de, gui-ja, gui-zh-tw and agent-own-direct, 37 of 37 ok. --- internal/gui/tests/zhipu-team.test.cjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/gui/tests/zhipu-team.test.cjs b/internal/gui/tests/zhipu-team.test.cjs index 64c0d29c5..2e01fc6ca 100644 --- a/internal/gui/tests/zhipu-team.test.cjs +++ b/internal/gui/tests/zhipu-team.test.cjs @@ -172,7 +172,7 @@ for (const engine of (process.env.BROWSER ? [process.env.BROWSER] : ["chromium", // the sheet is still open under it await sheet.locator('.tile[data-pick="Z.ai"]').click(); await org(page).waitFor(); - await page.locator(".editor.new input[type=password]").fill("zk-1"); + await page.locator(".editor.new input[type=password]:not(.proxy-credential)").fill("zk-1"); await click(page, org(page)); await org(page).fill("org-9"); await proj(page).fill(" proj-9 ");