Files
cacti/tests/regression/issue5540_tooltip_pin_unit_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.0 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);
}
if (strpos($layout, 'var pinnedTooltipElement = null;') === false) {
fwrite(STDERR, "missing pinned tooltip state\n");
exit(1);
}
if (strpos($layout, 'function clearPinnedTooltip() {') === false) {
fwrite(STDERR, "missing pinned tooltip clear helper\n");
exit(1);
}
if (strpos($layout, "target.removeData('cacti-tooltip-pinned');") === false) {
fwrite(STDERR, "missing pinned tooltip reset\n");
exit(1);
}
print "issue5540 tooltip pin unit regression passed\n";