From 8dc6fbf14905392ee47f51b865ee4688d19ea50f Mon Sep 17 00:00:00 2001 From: Tymoteusz Czech <2625371+Tymek@users.noreply.github.com> Date: Fri, 14 Feb 2025 14:33:17 +0100 Subject: [PATCH] fix(1-3374): access e2e test (#9313) Fix e2e test, failing because of subtle table syntax change. Nested `span`s are counted twice in Cypress `:contains` --- frontend/cypress/integration/projects/access.spec.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/cypress/integration/projects/access.spec.ts b/frontend/cypress/integration/projects/access.spec.ts index 298c8042db..018017a2b1 100644 --- a/frontend/cypress/integration/projects/access.spec.ts +++ b/frontend/cypress/integration/projects/access.spec.ts @@ -126,8 +126,8 @@ describe('project-access', () => { cy.get(`[data-testid='${PA_ASSIGN_CREATE_ID}']`).click(); cy.wait('@editAccess'); - cy.get("td span:contains('Owner')").should('have.length', 2); - cy.get("td span:contains('Member')").should('have.length', 1); + cy.get("td a span:contains('Owner')").should('have.length', 2); + cy.get("td a span:contains('Member')").should('have.length', 1); }); it('can edit role to multiple roles', () => { @@ -145,8 +145,8 @@ describe('project-access', () => { cy.get(`[data-testid='${PA_ASSIGN_CREATE_ID}']`).click(); cy.wait('@editAccess'); - cy.get("td span:contains('Owner')").should('have.length', 2); - cy.get("td span:contains('2 roles')").should('have.length', 1); + cy.get("td a span:contains('Owner')").should('have.length', 2); + cy.get("td a span:contains('2 roles')").should('have.length', 1); }); it('can remove access', () => {