mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-01 02:12:26 +00:00
Refine popover tests to avoid inline style access
This commit is contained in:
1 parent
1e13acbc78
commit
767c7fba4b
1 file changed
+5
-3
@@ -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();
|
||||
});
|
||||
Reference in new issue
Block a user