Commits
FrancescoMolinaro authored and github-actions[bot] committed c3273c8d5e2
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 + | }); |