Refine popover tests to avoid inline style access

This commit is contained in:
thePR0M3TH3AN committed 2025-10-20 10:49:27 -04:00
1 parent 1e13acbc78
commit 767c7fba4b
1 file changed
+5 -3
+5 -3
View File
@@ -741,10 +741,12 @@ test("applies token-based sizing and arrow positioning", async () => {
const panel = documentRef.getElementById("panel-with-arrow");
const arrow = panel.querySelector(".arrow");
assert.equal(panel.style.maxWidth, "320px");
assert.equal(panel.style.maxHeight, "240px");
const panelStyles = getComputedStyle(panel);
assert.equal(panelStyles.maxWidth, "320px");
assert.equal(panelStyles.maxHeight, "240px");
assert.equal(arrow.dataset.popoverArrowSide, "bottom");
assert.notEqual(arrow.style.top, "");
const arrowStyles = getComputedStyle(arrow);
assert.notEqual(arrowStyles.top, "");
popover.destroy();
});