/** * Transparency Dashboard E2E Tests */ describe('Transparency Dashboard', () => { beforeEach(() => { cy.visit('/transparency'); cy.waitForPageLoad(); }); it('should load the transparency page', () => { cy.url().should('include', '/transparency'); }); it('should display dashboard content', () => { cy.get('main').should('be.visible'); }); it('should show transparency metrics', () => { // Check for dashboard sections cy.get('[data-testid="dashboard"], .dashboard, main').should('be.visible'); }); describe('Data Display', () => { it('should display charts or data visualizations', () => { // Look for chart containers or data elements cy.get('canvas, svg, [class*="chart"], [class*="graph"]').should( 'have.length.at.least', 0 ); }); it('should display audit information', () => { // Check for audit-related content cy.contains(/audit|log|record|history/i).should('exist'); }); }); describe('Accessibility', () => { it('should have proper heading structure', () => { cy.get('h1, h2, h3').should('have.length.at.least', 1); }); it('should be keyboard navigable', () => { cy.get('body').tab(); cy.focused().should('exist'); }); }); });