Files
coolify/tests/Feature/GlobalIconTooltipTest.php
T
Andras Bacsai 64d73b6922 fix(ui): keep helper popups in visual viewport on mobile
Position helper info popups with visualViewport bounds and
max size so they stay on screen. Ignore helper triggers in the
global icon tooltip handler via data-icon-tooltip-ignore.
2026-08-06 23:38:11 +02:00

17 lines
689 B
PHP

<?php
it('uses the custom tooltip for icon actions across layouts', function () {
$baseLayout = file_get_contents(resource_path('views/layouts/base.blade.php'));
$tooltip = file_get_contents(resource_path('views/components/icon-tooltip.blade.php'));
expect($baseLayout)->toContain('<x-icon-tooltip />')
->and($tooltip)
->toContain("closest('button, a, [data-tooltip]')")
->toContain("target.querySelector('svg')")
->toContain("target.matches('[data-icon-tooltip-ignore]')")
->toContain("target.removeAttribute('title')")
->toContain('role="tooltip"')
->toContain('aria-label')
->toContain('fixed z-[100]');
});