diff --git a/cypress/e2e/collection-edit.cy.ts b/cypress/e2e/collection-edit.cy.ts index e1ba1c5eed8..dd0dca4688e 100644 --- a/cypress/e2e/collection-edit.cy.ts +++ b/cypress/e2e/collection-edit.cy.ts @@ -12,8 +12,11 @@ beforeEach(() => { describe('Edit Collection > Edit Metadata tab', () => { it('should pass accessibility tests', () => { - // tag must be loaded - cy.get('ds-edit-collection').should('be.visible'); + // tag must be loaded + cy.get('ds-collection-form').should('be.visible'); + + // wait for at least one li to be rendered to prevent the accessibility test to fail + cy.get('ul[role="tablist"] li').should('be.visible'); // Analyze for accessibility issues testA11y('ds-edit-collection'); diff --git a/cypress/e2e/community-edit.cy.ts b/cypress/e2e/community-edit.cy.ts index 77e260feec0..8dcce7a554f 100644 --- a/cypress/e2e/community-edit.cy.ts +++ b/cypress/e2e/community-edit.cy.ts @@ -12,8 +12,11 @@ beforeEach(() => { describe('Edit Community > Edit Metadata tab', () => { it('should pass accessibility tests', () => { - // tag must be loaded - cy.get('ds-edit-community').should('be.visible'); + // tag must be loaded + cy.get('ds-community-form').should('be.visible'); + + // wait for at least one li to be rendered to prevent the accessibility test to fail + cy.get('ul[role="tablist"] li').should('be.visible'); // Analyze for accessibility issues testA11y('ds-edit-community'); diff --git a/src/app/shared/comcol/comcol-forms/edit-comcol-page/edit-comcol-page.component.html b/src/app/shared/comcol/comcol-forms/edit-comcol-page/edit-comcol-page.component.html index a8ca674c263..7797ba13c91 100644 --- a/src/app/shared/comcol/comcol-forms/edit-comcol-page/edit-comcol-page.component.html +++ b/src/app/shared/comcol/comcol-forms/edit-comcol-page/edit-comcol-page.component.html @@ -11,9 +11,10 @@

{{ type + '.edit.head' | translate }}