gui tests: usage-fold wheels a fold above Scroll to top's floater (#6003)
"several accounts: one in full, the others in brief" was red in WebKit (en and zh) sinced5dc8eecc(11-02) added the Scroll to top / bottom floater: wheelTo stopped once the fold was above the 300px window's foot, and at that height the floater, shown once the page scrolls, sat over Codex's second fold, so the click was caught by .ve-up ("intercepts pointer events", 11 retries). It now stops above the floater's top, as a reader clicks what isn't under it. Run on mica at origin/main60ebaea03plus this file: the "several accounts" tests, chromium and webkit, en and zh: 4 of 4 (before: both webkit red). The "17 subscriptions" reds of the same issue are another cause, still open on #6003.
This commit is contained in:
@@ -126,11 +126,14 @@ for (const engine of (process.env.BROWSER ? [process.env.BROWSER] : ["chromium",
|
||||
const two = acct("codex", "two@example.com");
|
||||
// wheeled to, as a reader would (the page holds still for a script's
|
||||
// scroll): packed into columns (#860), Codex's card is under ZCode's,
|
||||
// past this short window's foot
|
||||
// past this short window's foot. It stops above Scroll to top's
|
||||
// floater, which shows once the page scrolls (d5dc8eecc), as a reader
|
||||
// clicks what isn't under it (it caught WebKit's click, #6003)
|
||||
const wheelTo = async (l) => {
|
||||
for (let i = 0; i < 20; i++) {
|
||||
const y = (await l.boundingBox()).y;
|
||||
if (y > 60 && y + 40 < 300) break;
|
||||
const foot = await page.evaluate(() => document.querySelector(".view-ends.on")?.getBoundingClientRect().top ?? innerHeight);
|
||||
if (y > 60 && y + 40 < foot) break;
|
||||
await page.mouse.wheel(0, y > 60 ? 60 : -60);
|
||||
await page.waitForTimeout(150);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user