From c90b05650aa597adfb7592c10845c48ccd55c51a Mon Sep 17 00:00:00 2001 From: Andreas Awouters Date: Mon, 10 Mar 2025 16:47:47 +0100 Subject: [PATCH] 120243: Disable 'aria-valid-attr-value' for community-list e2e test --- cypress/e2e/community-list.cy.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/cypress/e2e/community-list.cy.ts b/cypress/e2e/community-list.cy.ts index 9b9c87b112..a5c255de04 100644 --- a/cypress/e2e/community-list.cy.ts +++ b/cypress/e2e/community-list.cy.ts @@ -12,6 +12,13 @@ describe('Community List Page', () => { cy.get('[data-test="expand-button"]').click({ multiple: true }); // Analyze for accessibility issues - testA11y('ds-community-list-page'); + testA11y('ds-community-list-page', { + rules: { + // When expanding a cdk node on the community-list page, the 'aria-posinset' property becomes 0. + // 0 is not a valid value for 'aria-posinset' so the test fails. + // see https://github.com/DSpace/dspace-angular/issues/4068 + 'aria-valid-attr-value': { enabled: false }, + }, + }); }); });