Skip to content

Commit

Permalink
Click most recently created note only
Browse files Browse the repository at this point in the history
  • Loading branch information
kqualters-elastic committed Apr 24, 2023
1 parent 0ac946d commit cde1374
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ describe('Timeline notes tab', () => {
it('should be able to delete a note', () => {
const deleteNoteContent = 'delete me';
addNotesToTimeline(deleteNoteContent);
cy.get(DELETE_NOTE).click();
cy.get(DELETE_NOTE).last().click();
cy.get(MODAL_CONFIRMATION_BTN).click();
cy.get(NOTE_DESCRIPTION).last().should('not.have.text', deleteNoteContent);
});
Expand Down

0 comments on commit cde1374

Please sign in to comment.