From 767c7fba4b69053e8d2ceab0a552c0c606088088 Mon Sep 17 00:00:00 2001 From: thePR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> Date: Mon, 20 Oct 2025 10:49:27 -0400 Subject: [PATCH] Refine popover tests to avoid inline style access --- tests/ui/popoverEngine.test.mjs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/ui/popoverEngine.test.mjs b/tests/ui/popoverEngine.test.mjs index c7cbee3b..8dae962a 100644 --- a/tests/ui/popoverEngine.test.mjs +++ b/tests/ui/popoverEngine.test.mjs @@ -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(); });