gui test: signin-close lets a Windows window tint its title bar (#4124)

signin-close was red on Windows in every engine and language: its last
check, "nothing else was changed", counted the POST to
/api/window/titlebar that a Windows window makes to tint its title bar
to the page (6927bedfc). That changes nothing the test is about, so the
check now leaves it out, as it leaves /api/open.

Run at this tree on origin/main d80d75f30:
- xiaomi-gpu (win-run), signin-close, Chromium and WebKit: 2/2 each;
  before this, 0/2 each with + 'POST /api/window/titlebar'.
- magpie-desktop (wsl-run), the same: 2/2 each, before and after.
No other GUI test filters its POSTs this way (grep startsWith("POST")).
This commit is contained in:
yetone
2026-10-30 15:06:14 +08:00
parent 952f11f569
commit 244d80e23f
+2 -1
View File
@@ -166,7 +166,8 @@ for (const engine of (process.env.BROWSER ? [process.env.BROWSER] : ["chromium",
const missing = await page.evaluate(() => ["Stop waiting for this sign-in"].filter((k) => !I18N.zh[k]));
assert.deepEqual(missing, []);
assert.deepEqual(ctl.other.filter((o) => o.startsWith("POST") && !o.includes("/api/open")), [], "nothing else was changed");
// a Windows window tints its title bar to the page (6927bedfc), which changes nothing
assert.deepEqual(ctl.other.filter((o) => o.startsWith("POST") && !o.includes("/api/open") && !o.includes("/api/window/titlebar")), [], "nothing else was changed");
assert.deepEqual(errors, []);
});
}