Skip to content

Commit

Permalink
check ticket mini dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
cconard96 committed Dec 28, 2024
1 parent 3831964 commit 5b53ddc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/cypress/e2e/dashboards.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
});
Expand Down

0 comments on commit 5b53ddc

Please sign in to comment.