From 14910c5899f437b32295cd9ba3bbbbc5edb6d255 Mon Sep 17 00:00:00 2001 From: Jon Date: Mon, 13 May 2024 12:46:25 +0200 Subject: [PATCH 1/7] feat: refs #7271 basicData and Log --- src/pages/Zone/Card/ZoneBasicData.vue | 58 +++++++------------------- src/pages/Zone/Card/ZoneDescriptor.vue | 6 +-- src/router/modules/zone.js | 11 ++++- 3 files changed, 29 insertions(+), 46 deletions(-) diff --git a/src/pages/Zone/Card/ZoneBasicData.vue b/src/pages/Zone/Card/ZoneBasicData.vue index 5d57b920e..00f34b431 100644 --- a/src/pages/Zone/Card/ZoneBasicData.vue +++ b/src/pages/Zone/Card/ZoneBasicData.vue @@ -1,34 +1,23 @@ - + From cb40505f82c90be4d29a742bc6d939e55d957a7e Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Tue, 14 May 2024 11:11:28 +0200 Subject: [PATCH 6/7] 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', () => { From f4dd9b84fd5c4be44ae856aaa8f645beb9b402ae Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Tue, 14 May 2024 11:42:34 +0200 Subject: [PATCH 7/7] fix: VnLocation > fiscal-data --- src/components/CreateNewPostcodeForm.vue | 7 ++++--- test/cypress/integration/VnLocation.spec.js | 12 ++++++------ 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/components/CreateNewPostcodeForm.vue b/src/components/CreateNewPostcodeForm.vue index fd8570176..064ad1631 100644 --- a/src/components/CreateNewPostcodeForm.vue +++ b/src/components/CreateNewPostcodeForm.vue @@ -127,9 +127,10 @@ const onProvinceCreated = async ({ name }, formData) => { - - - + { beforeEach(() => { cy.viewport(1280, 720); cy.login('developer'); - cy.visit('/#/supplier/567/fiscal-data', { timeout: 2000 }); - cy.waitForElement('.q-card'); + cy.visit('/#/supplier/567/fiscal-data', { timeout: 7000 }); + cy.waitForElement('.q-form'); }); it('Create postCode', function () { cy.get( - ':nth-child(6) > :nth-child(1) > .q-field > .q-field__inner > .q-field__control > :nth-child(3) > .q-icon' + ':nth-child(6) > .q-field > .q-field__inner > .q-field__control > :nth-child(3) > .q-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'); cy.selectOption( - '.q-dialog__inner > .column > #formModel > .q-card > :nth-child(4) > :nth-child(2) > .q-field > .q-field__inner > .q-field__control ', + '.q-dialog__inner > .column > #formModel > .q-card > :nth-child(4) > .q-select > .q-field__inner > .q-field__control ', 'Valencia' ); cy.selectOption( - '.q-dialog__inner > .column > #formModel > .q-card > :nth-child(5) > :nth-child(1) > .q-field > .q-field__inner > .q-field__control ', + '.q-dialog__inner > .column > #formModel > .q-card > :nth-child(5) > .q-select > .q-field__inner > .q-field__control ', 'Province one' ); cy.selectOption( - '.q-dialog__inner > .column > #formModel > .q-card > :nth-child(5) > :nth-child(2) > .q-field > .q-field__inner > .q-field__control ', + '.q-dialog__inner > .column > #formModel > .q-card > :nth-child(6) > .q-select > .q-field__inner > .q-field__control ', 'España' ); cy.get('.q-mt-lg > .q-btn--standard').click();