HEL-665: prioritize media inputs and keep short-window result actions visible

Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
leefer
2026-10-14 00:20:48 +08:00
co-authored by multica-agent
parent 16933b1dfc
commit ae9e34f6ab
6 changed files with 48 additions and 34 deletions
+10
View File
@@ -470,6 +470,16 @@ try {
);
});
ok(`entire video, playback and generate visible at ${width}x${height}`, visible);
ok(
`result operations remain fully visible at ${width}x${height}`,
await page.evaluate(() => {
const body = document.querySelector('.inspector.main .body').getBoundingClientRect();
return [...document.querySelectorAll('.inspector.main .actions .a-btn')].every((e) => {
const r = e.getBoundingClientRect();
return r.bottom <= body.bottom + 1 && r.bottom <= innerHeight;
});
}),
);
await page.screenshot({ path: SHOTS + `/workspace-${width}x${height}.png` });
await page.locator('.model-selector').click();
await page.locator('.tool-picker').waitFor();