[CST-15592] add accessibility tests for following pages:

Metadata Import
Batch Import
Processes Overview
New Process
Quality Assurance Sources
This commit is contained in:
FrancescoMolinaro
2024-07-19 17:41:12 +02:00
parent b9c712c72f
commit e6a7fb852a
7 changed files with 87 additions and 2 deletions

View File

@@ -0,0 +1,18 @@
import { testA11y } from 'cypress/support/utils';
describe('Processes Overview', () => {
// NOTE: these tests currently assume this query will return results!
beforeEach(() => {
// Must login as an Admin to see processes
cy.visit('/processes');
cy.loginViaForm(Cypress.env('DSPACE_TEST_ADMIN_USER'), Cypress.env('DSPACE_TEST_ADMIN_PASSWORD'));
});
it('should pass accessibility tests', () => {
// Process overview must first be visible
cy.get('ds-process-overview').should('be.visible');
// Analyze <ds-process-overview> for accessibility issues
testA11y('ds-process-overview');
});
});