diff --git a/test/cypress/integration/vnComponent/VnNotes.spec.js b/test/cypress/integration/vnComponent/VnNotes.spec.js index 35dcd17eb..e197a9622 100644 --- a/test/cypress/integration/vnComponent/VnNotes.spec.js +++ b/test/cypress/integration/vnComponent/VnNotes.spec.js @@ -4,7 +4,7 @@ describe('VnNotes', () => { beforeEach(() => { cy.viewport(1920, 1080); cy.login('developer'); - cy.visit('#/customer/1101/notes'); + cy.visit('#/customer/1102/notes'); }); it('should add and filter notes', () => { @@ -15,9 +15,10 @@ describe('VnNotes', () => { cy.get('.column.full-width') .children() .each(($el) => { - cy.wrap($el) - .find('[data-cy="VnNotes-observation-type-badge"]') - .should('include.text', obervationType); + cy.dataCy('VnNotes-observation-type-badge').should( + 'include.text', + obervationType, + ); }); }); });