mirror of
https://github.com/tiennm99/coolify.git
synced 2026-08-25 12:27:45 +00:00
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.
17 lines
689 B
PHP
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]');
|
|
});
|