From ba5ea898c3c1dbf3add9ad1c6c00e16cabdce04e Mon Sep 17 00:00:00 2001 From: jtubau Date: Fri, 14 Mar 2025 07:30:26 +0100 Subject: [PATCH] test: refs #8440 ensure delete note button is visible before clicking --- test/cypress/integration/route/vehicle/vehicleNotes.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/cypress/integration/route/vehicle/vehicleNotes.spec.js b/test/cypress/integration/route/vehicle/vehicleNotes.spec.js index 500c5997c4..cd92cc4af4 100644 --- a/test/cypress/integration/route/vehicle/vehicleNotes.spec.js +++ b/test/cypress/integration/route/vehicle/vehicleNotes.spec.js @@ -22,7 +22,7 @@ describe('Vehicle Notes', () => { }); it('Should delete note', () => { - cy.dataCy(selectors.deleteNoteBtn).first().click(); + cy.dataCy(selectors.deleteNoteBtn).first().should('be.visible').click(); cy.get(selectors.noteCard).first().should('have.text', noteText); }); });