+ {% endif %}
+
+
+ {{ toolbars|raw }}
+ {{ filters|raw }}
+ {{ grid_guide|raw }}
+
+ {{ gridstack_items|raw }}
+
+
+ {% if mini %}
+
+
+ {% endif %}
+
+TWIG, $twig_params);
}
diff --git a/src/Html.php b/src/Html.php
index c25bbb08f44..e83e343759b 100644
--- a/src/Html.php
+++ b/src/Html.php
@@ -1111,7 +1111,6 @@ public static function includeHeader(
if (in_array('dashboard', $jslibs)) {
$tpl_vars['css_files'][] = ['path' => 'css/standalone/dashboard.scss'];
- Html::requireJs('dashboard');
}
if (in_array('marketplace', $jslibs)) {
@@ -5949,9 +5948,6 @@ public static function requireJs($name)
case 'fuzzy':
$_SESSION['glpi_js_toload'][$name][] = 'lib/fuzzy.js';
break;
- case 'dashboard':
- $_SESSION['glpi_js_toload'][$name][] = 'js/dashboard.js';
- break;
case 'marketplace':
$_SESSION['glpi_js_toload'][$name][] = 'js/marketplace.js';
break;
diff --git a/tests/cypress/e2e/dashboards.cy.js b/tests/cypress/e2e/dashboards.cy.js
new file mode 100644
index 00000000000..4abd639ff0b
--- /dev/null
+++ b/tests/cypress/e2e/dashboards.cy.js
@@ -0,0 +1,55 @@
+/**
+ * ---------------------------------------------------------------------
+ *
+ * GLPI - Gestionnaire Libre de Parc Informatique
+ *
+ * http://glpi-project.org
+ *
+ * @copyright 2015-2024 Teclib' and contributors.
+ * @copyright 2003-2014 by the INDEPNET Development Team.
+ * @licence https://www.gnu.org/licenses/gpl-3.0.html
+ *
+ * ---------------------------------------------------------------------
+ *
+ * LICENSE
+ *
+ * This file is part of GLPI.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see