diff --git a/test/cypress/integration/VnLocation.spec.js b/test/cypress/integration/VnLocation.spec.js index 84b2086cc..6719d8391 100644 --- a/test/cypress/integration/VnLocation.spec.js +++ b/test/cypress/integration/VnLocation.spec.js @@ -2,8 +2,7 @@ const locationOptions = '[role="listbox"] > div.q-virtual-scroll__content > .q-i describe('VnLocation', () => { const dialogInputs = '.q-dialog label input'; describe('Worker Create', () => { - const inputLocation = - '.q-form .q-card > :nth-child(3) > .q-field > .q-field__inner > .q-field__control > .q-field__control-container'; + const inputLocation = '.q-form input[aria-label="Location"]'; beforeEach(() => { cy.viewport(1280, 720); cy.login('developer'); @@ -25,9 +24,6 @@ describe('VnLocation', () => { cy.get(inputLocation).clear(); cy.get(inputLocation).type('ecuador'); cy.get(locationOptions).should('have.length.at.least', 1); - cy.get( - '.q-form .q-card > :nth-child(3) > .q-field > .q-field__inner > .q-field__control > :nth-child(3) > .q-icon' - ).click(); }); }); describe('Fiscal-data', () => { @@ -38,9 +34,7 @@ describe('VnLocation', () => { cy.waitForElement('.q-form'); }); it('Create postCode', function () { - cy.get( - ':nth-child(6) > .q-field > .q-field__inner > .q-field__control > :nth-child(2) > .q-icon' - ).click(); + cy.get('.q-form > .q-card > .vn-row:nth-child(6) .--add-icon').click(); cy.get('.q-card > h1').should('have.text', 'New postcode'); cy.get(dialogInputs).eq(0).clear('12'); cy.get(dialogInputs).eq(0).type('1234453');