Commits

FrancescoMolinaro authored and github-actions[bot] committed c3273c8d5e2
[CST-15592] add accessibility tests for:

Edit Eperson Edit Group Create EPerson Epeople Registry Groups Registry (cherry picked from commit a0e3c41be6d7fbf93dc98ce2973831ab3b222b68)
No tags

cypress/e2e/create-eperson.cy.ts

Added
1 +import { testA11y } from 'cypress/support/utils';
2 +
3 +describe('Create Eperson', () => {
4 + // NOTE: these tests currently assume this query will return results!
5 + beforeEach(() => {
6 + // Must login as an Admin to see processes
7 + cy.visit('/access-control/epeople/create');
8 + cy.loginViaForm(Cypress.env('DSPACE_TEST_ADMIN_USER'), Cypress.env('DSPACE_TEST_ADMIN_PASSWORD'));
9 + });
10 +
11 + it('should pass accessibility tests', () => {
12 + // Form must first be visible
13 + cy.get('ds-eperson-form').should('be.visible');
14 + // Analyze <ds-eperson-form> for accessibility issues
15 + testA11y('ds-eperson-form');
16 + });
17 +});

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut