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/main34116ec01, 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/main34116ec01: 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/main8a8079680): - 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/main8a8079680(#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/maind02b8a000(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.
This commit is contained in:
@@ -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 ");
|
||||
|
||||
Reference in New Issue
Block a user