fix: handle complete empty snapshots and match dropdown trigger width

This commit is contained in:
Andras Bacsai
2026-08-16 18:26:40 +02:00
parent 9729e765b4
commit e28d8ca0ff
4 changed files with 23 additions and 21 deletions
@@ -46,6 +46,9 @@ it('centralizes floating dropdown positioning in an Alpine data provider', funct
->toContain('window.floatingDropdown = function floatingDropdown')
->toContain('window.requestAnimationFrame')
->toContain('positionPanel(panel = null)')
->toContain('const desiredWidth = config.matchTriggerWidth')
->toContain('? triggerRect.width')
->not->toContain('? Math.max(triggerRect.width, panel.offsetWidth)')
->toContain('window.innerWidth < 768');
});