From b6a507d2a299a62dcfe47829fa59503385b227b1 Mon Sep 17 00:00:00 2001 From: Tim Donohue Date: Mon, 10 Mar 2025 14:22:47 -0500 Subject: [PATCH 1/2] Reenable accessibility test which is now fixed --- cypress/e2e/admin-sidebar.cy.ts | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/cypress/e2e/admin-sidebar.cy.ts b/cypress/e2e/admin-sidebar.cy.ts index 318bf2b27e..91e99b8f97 100644 --- a/cypress/e2e/admin-sidebar.cy.ts +++ b/cypress/e2e/admin-sidebar.cy.ts @@ -1,5 +1,4 @@ import { testA11y } from 'cypress/support/utils'; -import { Options } from 'cypress-axe'; describe('Admin Sidebar', () => { beforeEach(() => { @@ -16,13 +15,6 @@ describe('Admin Sidebar', () => { cy.get('ds-expandable-admin-sidebar-section').click({ multiple: true }); // Analyze for accessibility - testA11y('ds-admin-sidebar', - { - rules: { - // Currently all expandable sections have nested interactive elements - // See https://github.com/DSpace/dspace-angular/issues/2178 - 'nested-interactive': { enabled: false }, - }, - } as Options); + testA11y('ds-admin-sidebar'); }); }); From 308f0751cf2b589c24b7117b9e74217b22013921 Mon Sep 17 00:00:00 2001 From: Tim Donohue Date: Mon, 10 Mar 2025 14:23:05 -0500 Subject: [PATCH 2/2] Fix issues in IDEs (especially VS Code) with recognizing Cypress Typescript files. --- cypress/tsconfig.json | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/cypress/tsconfig.json b/cypress/tsconfig.json index 51237b5e95..e7b70a29b7 100644 --- a/cypress/tsconfig.json +++ b/cypress/tsconfig.json @@ -1,10 +1,16 @@ { "extends": "../tsconfig.json", "include": [ - "**/*.ts" + "**/*.ts", + "../cypress.config.ts" ], "compilerOptions": { "sourceMap": false, + "typeRoots": [ + "../node_modules", + "../node_modules/@types", + "../src/typings.d.ts" + ], "types": [ "cypress", "cypress-axe",