diff --git a/test/cypress/integration/claim/claimNotes.spec.js b/test/cypress/integration/claim/claimNotes.spec.js index a4a493cda..d7a918db1 100644 --- a/test/cypress/integration/claim/claimNotes.spec.js +++ b/test/cypress/integration/claim/claimNotes.spec.js @@ -1,4 +1,6 @@ describe('ClaimNotes', () => { + const saveBtn = '.q-field__append > .q-btn > .q-btn__content > .q-icon'; + const firstNote = '.q-infinite-scroll :nth-child(1) > .q-card__section--vert'; beforeEach(() => { cy.login('developer'); cy.visit(`/#/claim/${2}/notes`); @@ -7,7 +9,7 @@ describe('ClaimNotes', () => { it('should add a new note', () => { const message = 'This is a new message.'; cy.get('.q-textarea').type(message); - cy.get('.q-field__append > .q-btn > .q-btn__content > .q-icon').click(); //save - cy.get(':nth-child(1) > .q-card__section--vert').should('have.text', message); + cy.get(saveBtn).click(); + cy.get(firstNote).should('have.text', message); }); });