From 951b8fc1fa8f011c6d4a0ce3b31088eff93bfc43 Mon Sep 17 00:00:00 2001 From: alexm Date: Mon, 23 Sep 2024 11:15:11 +0200 Subject: [PATCH 1/3] warmFix: e2e claimDevelopment --- test/cypress/integration/claim/claimDevelopment.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/cypress/integration/claim/claimDevelopment.spec.js b/test/cypress/integration/claim/claimDevelopment.spec.js index 3b73a24d9..81fc33ecd 100755 --- a/test/cypress/integration/claim/claimDevelopment.spec.js +++ b/test/cypress/integration/claim/claimDevelopment.spec.js @@ -37,7 +37,7 @@ describe('ClaimDevelopment', () => { cy.wait(['@workers', '@workers']); cy.addCard(); - cy.get(thirdRow).should('exist'); + cy.waitForElement(thirdRow); const rowData = [ false, From 29cc14673aaa90769af9ee3e14f7873fafe55e86 Mon Sep 17 00:00:00 2001 From: alexm Date: Mon, 23 Sep 2024 11:15:17 +0200 Subject: [PATCH 2/3] warmFix: e2e claimDevelopment --- test/cypress/support/commands.js | 1 + 1 file changed, 1 insertion(+) diff --git a/test/cypress/support/commands.js b/test/cypress/support/commands.js index a9a405313..43788f59f 100755 --- a/test/cypress/support/commands.js +++ b/test/cypress/support/commands.js @@ -140,6 +140,7 @@ Cypress.Commands.add('removeCard', () => { }); Cypress.Commands.add('addCard', () => { cy.waitForElement('tbody'); + cy.waitForElement('.q-page-sticky > div > .q-btn'); cy.get('.q-page-sticky > div > .q-btn').click(); }); Cypress.Commands.add('clickConfirm', () => { From 6a8ed89a71b85a42acdaef4974cd84e8fa7ae1f1 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Mon, 23 Sep 2024 11:41:30 +0000 Subject: [PATCH 3/3] fix: VnLocation test --- .../integration/vnComponent/vnLocation.spec.js | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/test/cypress/integration/vnComponent/vnLocation.spec.js b/test/cypress/integration/vnComponent/vnLocation.spec.js index 3533a3c1f..1872d3591 100644 --- a/test/cypress/integration/vnComponent/vnLocation.spec.js +++ b/test/cypress/integration/vnComponent/vnLocation.spec.js @@ -34,22 +34,25 @@ describe('VnLocation', () => { cy.visit('/#/supplier/567/fiscal-data', { timeout: 7000 }); cy.waitForElement('.q-form'); }); - it('Fin by postalCode', () => { + it('Find by postalCode', () => { const postCode = '46600'; + const postCodeLabel = '46600, Valencia(Province one), España'; const firstOption = '[role="listbox"] .q-item:nth-child(1)'; cy.get(inputLocation).click(); cy.get(inputLocation).clear(); cy.get(inputLocation).type(postCode); - cy.get(locationOptions).should('have.length.at.least', 2); + cy.get(locationOptions) + .get(':nth-child(1)') + .should('have.length.at.least', 2); + cy.get( + firstOption.concat(' > .q-item__section > .q-item__label--caption') + ).should('have.text', postCodeLabel); cy.get(firstOption).click(); cy.get('.q-btn-group > .q-btn--standard > .q-btn__content > .q-icon').click(); cy.reload(); cy.waitForElement('.q-form'); - cy.get(inputLocation).should( - 'have.value', - '46600 - Valencia(Province one), España' - ); + cy.get(inputLocation).should('have.value', postCodeLabel); }); it('Create postCode', () => {