From cb40505f82c90be4d29a742bc6d939e55d957a7e Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Tue, 14 May 2024 11:11:28 +0200 Subject: [PATCH] fix: VnLocation > workercreate --- test/cypress/integration/VnLocation.spec.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/test/cypress/integration/VnLocation.spec.js b/test/cypress/integration/VnLocation.spec.js index f373bad8a..008594642 100644 --- a/test/cypress/integration/VnLocation.spec.js +++ b/test/cypress/integration/VnLocation.spec.js @@ -1,13 +1,13 @@ const locationOptions = '[role="listbox"] > div.q-virtual-scroll__content > .q-item'; describe('VnLocation', () => { const dialogInputs = '.q-dialog label input'; - describe('Create', () => { + describe('Worker Create', () => { const inputLocation = - '.q-form .q-card> :nth-child(3) > :nth-child(1) > .q-field > .q-field__inner > .q-field__control'; + '.q-form .q-card > :nth-child(3) > .q-field > .q-field__inner > .q-field__control > .q-field__control-container'; beforeEach(() => { cy.viewport(1280, 720); cy.login('developer'); - cy.visit('/#/worker/create'); + cy.visit('/#/worker/create', { timeout: 5000 }); cy.waitForElement('.q-card'); }); it('Show all options', function () { @@ -25,8 +25,9 @@ describe('VnLocation', () => { cy.get(inputLocation).clear(); cy.get(inputLocation).type('ecuador'); cy.get(locationOptions).should('have.length.at.least', 1); - cy.get(`${locationOptions}:nth-child(1)`).click(); - cy.get(inputLocation + '> :nth-child(2) > .q-icon').click(); + 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', () => {