gui tests: model-price-tiers types the tier's "over" amount and presses Enter — Chromium's fill selected the box, and its blur's change pre-filled the input price with 1, so the price read "12,5". Passes in Chromium and WebKit, en and zh; failed in Chromium on 6e623d16.

This commit is contained in:
yetone committed 2026-10-06 05:07:13 +08:00
1 parent 7ca9419bcf
commit daab41b566
1 file changed
+3 -1
@@ -105,7 +105,9 @@ for (const engine of (process.env.BROWSER ? [process.env.BROWSER] : ["chromium",
assert.equal(await page.evaluate(() => document.activeElement?.getAttribute("aria-label")), L.over);
await typeIn(row("plain-1").getByRole("textbox", { name: L.over, exact: true }), "lots");
await page.locator("#status", { hasText: L.badSize }).waitFor();
await row("plain-1").getByRole("textbox", { name: L.over, exact: true }).fill("200k");
// (Enter first: the size taken fills the price boxes from its own, and
// in Chromium a fill that blurs the size box lands after that fill)
await typeIn(row("plain-1").getByRole("textbox", { name: L.over, exact: true }), "200k");
await typeIn(row("plain-1").getByRole("textbox", { name: L.long + " · " + L.input, exact: true }), "2,5");
assert.deepEqual(await tier("plain-1").evaluateAll((is) => is.map((i) => i.value)), ["200K", "2.5", "4", "0.1", "0"]);
assert.equal(await page.evaluate(() => scrollY), y, "nothing scrolled the page");