Files
cacti/tests/regression/issue5540_tooltip_pin_integration_test.php
Thomas Vincent d5a070f7ef fix(ui): tooltip pin behavior and jQuery compatibility cleanup (#7040)
* fix(ui): pin explanation tooltips on click

* fix(ui): avoid duplicate tooltip pin handlers

* fix(js): replace deprecated jQuery APIs with modern equivalents

* fix(ui): restore decimal-safe numeric parsing in zoom deserialize

* chore(vendor): bump tablesorter and jquery-validation assets

* test(e2e): add jquery vendor smoke coverage with playwright
2026-04-22 16:14:57 -04:00

33 lines
1.1 KiB
PHP

<?php
/*
+-------------------------------------------------------------------------+
| Copyright (C) 2004-2026 The Cacti Group |
+-------------------------------------------------------------------------+
| Cacti: The Complete RRDtool-based Graphing Solution |
+-------------------------------------------------------------------------+
*/
$layout = file_get_contents(__DIR__ . '/../../include/layout.js');
if ($layout === false) {
fwrite(STDERR, "unable to read include/layout.js\n");
exit(1);
}
$needles = array(
".on('click.cactiTooltipPin', 'div.cactiTooltipHint, span.cactiTooltipHint'",
"target.data('cacti-tooltip-pinned', true);",
"$(document).tooltip('open', $.Event('mouseover', {",
".on('click.cactiTooltipPinDismiss', function (event) {",
"tooltip = tooltipId ? $('#' + tooltipId) : $();"
);
foreach ($needles as $needle) {
if (strpos($layout, $needle) === false) {
fwrite(STDERR, "missing integration behavior: $needle\n");
exit(1);
}
}
print "issue5540 tooltip pin integration regression passed\n";