diff --git a/frontend/cypress/integration/projects/access.spec.ts b/frontend/cypress/integration/projects/access.spec.ts index 018017a2b1..f912e845a3 100644 --- a/frontend/cypress/integration/projects/access.spec.ts +++ b/frontend/cypress/integration/projects/access.spec.ts @@ -150,7 +150,10 @@ describe('project-access', () => { }); it('can remove access', () => { - cy.get(`[data-testid='${PA_REMOVE_BUTTON_ID}']`).first().click(); + cy.get(`[data-testid='${PA_REMOVE_BUTTON_ID}']`) + .filter(':not(:disabled)') + .first() + .click(); cy.intercept( 'DELETE',