From a0a5c4944b14c1e2f26d9b481bd4737fb69e3fdb Mon Sep 17 00:00:00 2001 From: jtubau <jtubau@verdnatura.es> Date: Mon, 3 Mar 2025 14:13:26 +0100 Subject: [PATCH] refactor: refs #8648 update roadmap deletion test to use current element text --- test/cypress/integration/route/roadMap/roadmapList.spec.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/cypress/integration/route/roadMap/roadmapList.spec.js b/test/cypress/integration/route/roadMap/roadmapList.spec.js index 64fcd1330..35c0c2b02 100644 --- a/test/cypress/integration/route/roadMap/roadmapList.spec.js +++ b/test/cypress/integration/route/roadMap/roadmapList.spec.js @@ -64,13 +64,11 @@ describe('RoadMap', () => { it('Should delete selected roadmap', () => { cy.get(selectors.id).then(($el) => { - const valor = $el.text(); - cy.get(selectors.checkbox).click(); cy.get(selectors.deleteBtn).click(); cy.dataCy(selectors.confirmBtn).click(); cy.typeSearchbar('{enter}'); - cy.get(selectors.id).should('not.have.text', valor); + cy.get(selectors.id).should('not.have.text', $el.text); }); }); });