refactor: refs #8648 update roadmap deletion test to use current element text
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details

This commit is contained in:
Jose Antonio Tubau 2025-03-03 14:13:26 +01:00
parent 927bf67ed1
commit a0a5c4944b
1 changed files with 1 additions and 3 deletions

View File

@ -64,13 +64,11 @@ describe('RoadMap', () => {
it('Should delete selected roadmap', () => { it('Should delete selected roadmap', () => {
cy.get(selectors.id).then(($el) => { cy.get(selectors.id).then(($el) => {
const valor = $el.text();
cy.get(selectors.checkbox).click(); cy.get(selectors.checkbox).click();
cy.get(selectors.deleteBtn).click(); cy.get(selectors.deleteBtn).click();
cy.dataCy(selectors.confirmBtn).click(); cy.dataCy(selectors.confirmBtn).click();
cy.typeSearchbar('{enter}'); cy.typeSearchbar('{enter}');
cy.get(selectors.id).should('not.have.text', valor); cy.get(selectors.id).should('not.have.text', $el.text);
}); });
}); });
}); });