From 5b53ddcea4cf2c6f66e265de3344a47bad328c48 Mon Sep 17 00:00:00 2001 From: Curtis Conard Date: Sat, 28 Dec 2024 16:47:57 -0500 Subject: [PATCH] check ticket mini dashboard --- tests/cypress/e2e/dashboards.cy.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/cypress/e2e/dashboards.cy.js b/tests/cypress/e2e/dashboards.cy.js index 1b959c1a3cd..4abd639ff0b 100644 --- a/tests/cypress/e2e/dashboards.cy.js +++ b/tests/cypress/e2e/dashboards.cy.js @@ -39,14 +39,15 @@ describe('Entities selector', () => { ['Asset', '/front/dashboard_assets.php'], ['Assistance', '/front/dashboard_helpdesk.php'], ['Central', '/front/central.php'], + ['Tickets Mini', '/front/ticket.php'], ]); dashboards.forEach((value, key) => { it(`${key} Dashboard Loads`, () => { cy.visit(value); - cy.get('.grid-stack-item .g-chart').should('be.visible'); + cy.get('.grid-stack-item .g-chart, .grid-stack-item .big-number').should('be.visible'); // grid-stack-items should have reasonable height - cy.get('.grid-stack-item').each(($el) => { + cy.get('.grid-stack-item:not(.lock-bottom)').each(($el) => { cy.get($el).invoke('height').should('be.gt', 30); }); });