mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
24 lines
706 B
TypeScript
24 lines
706 B
TypeScript
import { Options } from "cypress-axe";
|
|
import { TEST_COMMUNITY } from "cypress/support";
|
|
|
|
describe('Community Page', () => {
|
|
|
|
it('should pass accessibility tests', () => {
|
|
cy.visit('/communities/' + TEST_COMMUNITY);
|
|
cy.injectAxe();
|
|
|
|
// <ds-community-page> tag must be loaded
|
|
cy.get('ds-community-page').should('exist');
|
|
|
|
// Analyze <ds-community-page> for accessibility issues
|
|
// Disable color-contrast checks until it is fixed (see #1202 and #1178)
|
|
cy.checkA11y('ds-community-page',
|
|
{
|
|
rules: {
|
|
'color-contrast': { enabled: false }
|
|
}
|
|
} as Options
|
|
);
|
|
});
|
|
});
|