mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
19 lines
517 B
TypeScript
19 lines
517 B
TypeScript
import { testA11y } from 'cypress/support/utils';
|
|
|
|
describe('Header', () => {
|
|
it('should pass accessibility tests', () => {
|
|
cy.visit('/');
|
|
|
|
// Header must first be visible
|
|
cy.get('ds-header').should('be.visible');
|
|
|
|
// Analyze <ds-header> for accessibility
|
|
testA11y({
|
|
include: ['ds-header'],
|
|
exclude: [
|
|
['#search-navbar-container'] // search in navbar has duplicative ID. Will be fixed in #1174
|
|
],
|
|
});
|
|
});
|
|
});
|