Merge branch 'fix/unify-e2e-firefox-artifact-popup' into unify/skills-20261112-night
🧪 Test / 🧪 Lock + lint (push) Canceled after 0s

This commit is contained in:
Kevin Veen-Birkenbach committed 2026-11-14 00:39:55 +00:00
commit a2a03995cb
1 file changed
+3 -1
+3 -1
View File
@@ -262,7 +262,9 @@ POPUPS = """
}; };
}; };
const away = async (pick) => { const away = async (pick) => {
const outside = document.elementFromPoint(2, innerHeight - 2); const rect = box.getBoundingClientRect();
const [, x, y] = [[rect.left, rect.left / 2, innerHeight / 2], [innerWidth - rect.right, (rect.right + innerWidth) / 2, innerHeight / 2], [rect.top, innerWidth / 2, rect.top / 2], [innerHeight - rect.bottom, innerWidth / 2, (rect.bottom + innerHeight) / 2]].sort((a, b) => b[0] - a[0])[0];
const outside = (await until(() => document.elementFromPoint(x, y) === dialog && dialog, 3000)) || document.elementFromPoint(x, y);
click(outside); click(outside);
await sleep(250); await sleep(250);
return {...look(pick()), open: dialog.open, outside: outside === dialog}; return {...look(pick()), open: dialog.open, outside: outside === dialog};