tify
Version:
A slim and mobile-friendly IIIF document viewer
30 lines (27 loc) • 509 B
JavaScript
// eslint-disable-next-line import/no-extraneous-dependencies
import 'cypress-html-validate/commands';
afterEach(() => {
if (cy.bypassAfterEach) {
return;
}
cy.htmlvalidate(
{
rules: {
'heading-level': [
'error',
{
allowMultipleH1: true,
},
],
'prefer-native-element': 'off',
'require-sri': 'off',
},
},
{
exclude: [
// Attribution may contain invalid HTML if the manifest provides such.
'.tify-info-section.-attribution',
],
},
);
});