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); }); }); });