gui tests: profile-in-use wheels down to the profile chips and Apply, which the Get started card put past the window's foot (#1853)
Cause:3e88fc09d. Its diff also brought in the Get started card (per #1825), which is intended. In profile-in-use's window case (1100 wide, 460 high) the card pushes the profile chips and the detail's Apply past the window's foot. The app puts back Playwright's own scroll, so in WebKit "<footer class=foot> intercepts pointer events" until the click times out. Bisected with the test: green on 3e88fc09d^, red from3e88fc09d. Change: wheel to the chip and then to Apply with reader.cjs's reach before each click. The assertions are unchanged. Run (worktree on origin/main31c1e3ab1, playwright 1.62.0, alone): 11/11 in chromium and webkit. Before: 5/11 in webkit. Not run: the full GUI suite.
This commit is contained in:
@@ -16,6 +16,7 @@ const fs = require("node:fs/promises");
|
||||
const path = require("node:path");
|
||||
const { test } = require("node:test");
|
||||
const { chromium, webkit } = require("playwright");
|
||||
const { reach } = require("./reader.cjs");
|
||||
|
||||
const assets = path.resolve(__dirname, "../assets");
|
||||
const models = ["model-a", "model-b"].map((m) => ({ value: m, label: m }));
|
||||
@@ -126,7 +127,11 @@ for (const engine of (process.env.BROWSER ? [process.env.BROWSER] : ["chromium",
|
||||
|
||||
await t.test(lang + ": window", async () => {
|
||||
const page = await open(lang, "window", 1100);
|
||||
// under the Get started card (3e88fc09d) the chips are past the
|
||||
// window's foot: the reader scrolls down to them
|
||||
await reach(page, chip(page, "游戏"));
|
||||
await chip(page, "游戏").click();
|
||||
await reach(page, page.locator(".prof-detail .pd-apply"));
|
||||
await page.locator(".prof-detail .pd-apply").click();
|
||||
await page.waitForFunction(() => document.querySelector("#profiles .chip.cur"));
|
||||
assert.deepEqual(await ticked(page), ["游戏"]);
|
||||
|
||||
Reference in New Issue
Block a user