From 42af6bb0271c33b40fd6ce608e844dff987bc361 Mon Sep 17 00:00:00 2001 From: Goriany Igor Date: Mon, 9 Sep 2024 14:52:33 +0300 Subject: [PATCH] fix: project page e2e test --- cypress/e2e/projects.cy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cypress/e2e/projects.cy.ts b/cypress/e2e/projects.cy.ts index 70f1f4947..ad01d13cd 100644 --- a/cypress/e2e/projects.cy.ts +++ b/cypress/e2e/projects.cy.ts @@ -238,7 +238,7 @@ describe('Projects', () => { cy.get(projectListItemTitle.query).should('contain.text', testProjectTitle); cy.get(dashboardLoadMore.query).click(); cy.get(`[href="${routes.project(testProjectKey)}"]`).should('exist'); - cy.get(projectListItemTitle.query).filter(`:contains(${testProjectTitle})`).last().click({ force: true }); + cy.visit(exactUrl(routes.project(testProjectKey))); // wait for correct page cy.get(filtersPanelTitle.query).should('contain', testProjectTitle); cy.url().should('equal', exactUrl(routes.project(testProjectKey)));