From f8b8fd03865c1cc8a44dc792c65f73c5d8964247 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Thu, 10 Oct 2024 12:17:23 +0200 Subject: [PATCH] test: use specific customer id to test with data --- .../integration/client/clientAddress.spec.js | 2 +- .../integration/client/clientBalance.spec.js | 4 ++-- .../integration/client/clientBasicData.spec.js | 2 +- .../integration/client/clientBillingData.spec.js | 2 +- .../integration/client/clientCredits.spec.js | 2 +- .../integration/client/clientFiscalData.spec.js | 2 +- .../integration/client/clientGreuges.spec.js | 4 ++-- test/cypress/integration/client/clientNotes.spec.js | 2 +- .../integration/client/clientRecoveries.spec.js | 4 ++-- .../integration/client/clientWebAccess.spec.js | 2 +- .../credit-management/clientCreditContracts.spec.js | 13 +++++++++++++ .../credit-management/clientCreditOpinion.spec.js | 4 ++-- .../client/others/clientConsumption.spec.js | 4 ++-- .../client/others/clientContacts.spec.js | 4 ++-- .../client/others/clientMandates.spec.js | 2 +- .../integration/client/others/clientSamples.spec.js | 4 ++-- .../integration/client/others/clientUnpaid.spec.js | 2 +- .../client/others/clientWebPayments.spec.js | 4 ++-- 18 files changed, 38 insertions(+), 25 deletions(-) create mode 100644 test/cypress/integration/client/credit-management/clientCreditContracts.spec.js diff --git a/test/cypress/integration/client/clientAddress.spec.js b/test/cypress/integration/client/clientAddress.spec.js index 075b0b68c64..06c3fce8f89 100644 --- a/test/cypress/integration/client/clientAddress.spec.js +++ b/test/cypress/integration/client/clientAddress.spec.js @@ -7,7 +7,7 @@ describe('Handle Client consignee', () => { timeout: 5000, }); }); - it('Form loaded', () => { + it('Should load layout', () => { cy.get('.q-card').should('be.visible'); }); }); diff --git a/test/cypress/integration/client/clientBalance.spec.js b/test/cypress/integration/client/clientBalance.spec.js index 36ffb5084e8..c418edb6a1d 100644 --- a/test/cypress/integration/client/clientBalance.spec.js +++ b/test/cypress/integration/client/clientBalance.spec.js @@ -3,11 +3,11 @@ describe('Handle Client balance', () => { beforeEach(() => { cy.viewport(1280, 720); cy.login('developer'); - cy.visit('#/customer/1110/balance', { + cy.visit('#/customer/1101/balance', { timeout: 5000, }); }); - it('Form loaded', () => { + it('Should load layout', () => { cy.get('.q-card').should('be.visible'); }); }); diff --git a/test/cypress/integration/client/clientBasicData.spec.js b/test/cypress/integration/client/clientBasicData.spec.js index 406c6e426da..10ab429e7e3 100644 --- a/test/cypress/integration/client/clientBasicData.spec.js +++ b/test/cypress/integration/client/clientBasicData.spec.js @@ -7,7 +7,7 @@ describe('Handle Client basic data', () => { timeout: 5000, }); }); - it('Form loaded', () => { + it('Should load layout', () => { cy.get('.q-card').should('be.visible'); }); }); diff --git a/test/cypress/integration/client/clientBillingData.spec.js b/test/cypress/integration/client/clientBillingData.spec.js index 00e92d2bb08..cba5770f990 100644 --- a/test/cypress/integration/client/clientBillingData.spec.js +++ b/test/cypress/integration/client/clientBillingData.spec.js @@ -7,7 +7,7 @@ describe('Handle Client billing data', () => { timeout: 5000, }); }); - it('Form loaded', () => { + it('Should load layout', () => { cy.get('.q-card').should('be.visible'); }); }); diff --git a/test/cypress/integration/client/clientCredits.spec.js b/test/cypress/integration/client/clientCredits.spec.js index 794d3968417..11cee6fc754 100644 --- a/test/cypress/integration/client/clientCredits.spec.js +++ b/test/cypress/integration/client/clientCredits.spec.js @@ -7,7 +7,7 @@ describe('Handle Client credits', () => { timeout: 5000, }); }); - it('Form loaded', () => { + it('Should load layout', () => { cy.get('.q-card').should('be.visible'); }); }); diff --git a/test/cypress/integration/client/clientFiscalData.spec.js b/test/cypress/integration/client/clientFiscalData.spec.js index 37ddbfeaf86..7e4f2a41f52 100644 --- a/test/cypress/integration/client/clientFiscalData.spec.js +++ b/test/cypress/integration/client/clientFiscalData.spec.js @@ -7,7 +7,7 @@ describe('Handle Client fiscal data', () => { timeout: 5000, }); }); - it('Form loaded', () => { + it('Should load layout', () => { cy.get('.q-card').should('be.visible'); }); }); diff --git a/test/cypress/integration/client/clientGreuges.spec.js b/test/cypress/integration/client/clientGreuges.spec.js index d8e8cd20e41..509a981d4d9 100644 --- a/test/cypress/integration/client/clientGreuges.spec.js +++ b/test/cypress/integration/client/clientGreuges.spec.js @@ -3,11 +3,11 @@ describe('Handle Client greuges', () => { beforeEach(() => { cy.viewport(1280, 720); cy.login('developer'); - cy.visit('#/customer/1110/greuges', { + cy.visit('#/customer/1101/greuges', { timeout: 5000, }); }); - it('Form loaded', () => { + it('Should load layout', () => { cy.get('.q-card').should('be.visible'); }); }); diff --git a/test/cypress/integration/client/clientNotes.spec.js b/test/cypress/integration/client/clientNotes.spec.js index 921112dbd26..050120e0d8a 100644 --- a/test/cypress/integration/client/clientNotes.spec.js +++ b/test/cypress/integration/client/clientNotes.spec.js @@ -7,7 +7,7 @@ describe('Handle Client notes', () => { timeout: 5000, }); }); - it('Form loaded', () => { + it('Should load layout', () => { cy.get('.q-card').should('be.visible'); }); }); diff --git a/test/cypress/integration/client/clientRecoveries.spec.js b/test/cypress/integration/client/clientRecoveries.spec.js index c083e75b1e2..83094203414 100644 --- a/test/cypress/integration/client/clientRecoveries.spec.js +++ b/test/cypress/integration/client/clientRecoveries.spec.js @@ -3,11 +3,11 @@ describe('Handle Client recoveries', () => { beforeEach(() => { cy.viewport(1280, 720); cy.login('developer'); - cy.visit('#/customer/1110/recoveries', { + cy.visit('#/customer/1101/recoveries', { timeout: 5000, }); }); - it('Form loaded', () => { + it('Should load layout', () => { cy.get('.q-card').should('be.visible'); }); }); diff --git a/test/cypress/integration/client/clientWebAccess.spec.js b/test/cypress/integration/client/clientWebAccess.spec.js index 79886164796..b64fcd27b13 100644 --- a/test/cypress/integration/client/clientWebAccess.spec.js +++ b/test/cypress/integration/client/clientWebAccess.spec.js @@ -7,7 +7,7 @@ describe('Handle Client web-access', () => { timeout: 5000, }); }); - it('Form loaded', () => { + it('Should load layout', () => { cy.get('.q-card').should('be.visible'); }); }); diff --git a/test/cypress/integration/client/credit-management/clientCreditContracts.spec.js b/test/cypress/integration/client/credit-management/clientCreditContracts.spec.js new file mode 100644 index 00000000000..160b77335e4 --- /dev/null +++ b/test/cypress/integration/client/credit-management/clientCreditContracts.spec.js @@ -0,0 +1,13 @@ +/// +describe('Handle Client credit opinion', () => { + beforeEach(() => { + cy.viewport(1280, 720); + cy.login('developer'); + cy.visit('#/customer/1101/credit-management/credit-contracts', { + timeout: 5000, + }); + }); + it('Should load layout', () => { + cy.get('.q-card').should('be.visible'); + }); +}); diff --git a/test/cypress/integration/client/credit-management/clientCreditOpinion.spec.js b/test/cypress/integration/client/credit-management/clientCreditOpinion.spec.js index 69ca9acc480..1e29bae5cb5 100644 --- a/test/cypress/integration/client/credit-management/clientCreditOpinion.spec.js +++ b/test/cypress/integration/client/credit-management/clientCreditOpinion.spec.js @@ -3,11 +3,11 @@ describe('Handle Client credit opinion', () => { beforeEach(() => { cy.viewport(1280, 720); cy.login('developer'); - cy.visit('#/customer/1110/others/credit-management/credit-opinion', { + cy.visit('#/customer/1110/credit-management/credit-opinion', { timeout: 5000, }); }); - it('Form loaded', () => { + it('Should load layout', () => { cy.get('.q-card').should('be.visible'); }); }); diff --git a/test/cypress/integration/client/others/clientConsumption.spec.js b/test/cypress/integration/client/others/clientConsumption.spec.js index 494acc4404c..44472afb586 100644 --- a/test/cypress/integration/client/others/clientConsumption.spec.js +++ b/test/cypress/integration/client/others/clientConsumption.spec.js @@ -3,11 +3,11 @@ describe('Handle Client consumption', () => { beforeEach(() => { cy.viewport(1280, 720); cy.login('developer'); - cy.visit('#/customer/1110/others/consumption', { + cy.visit('#/customer/1101/others/consumption', { timeout: 5000, }); }); - it('Form loaded', () => { + it('Should load layout', () => { cy.get('.q-card').should('be.visible'); }); }); diff --git a/test/cypress/integration/client/others/clientContacts.spec.js b/test/cypress/integration/client/others/clientContacts.spec.js index 8803e3f71fe..9f31fe87834 100644 --- a/test/cypress/integration/client/others/clientContacts.spec.js +++ b/test/cypress/integration/client/others/clientContacts.spec.js @@ -3,11 +3,11 @@ describe('Handle Client contacts', () => { beforeEach(() => { cy.viewport(1280, 720); cy.login('developer'); - cy.visit('#/customer/1110/others/contacts', { + cy.visit('#/customer/1101/others/contacts', { timeout: 5000, }); }); - it('Form loaded', () => { + it('Should load layout', () => { cy.get('.q-card').should('be.visible'); }); }); diff --git a/test/cypress/integration/client/others/clientMandates.spec.js b/test/cypress/integration/client/others/clientMandates.spec.js index 81e999623d6..968c91d6ced 100644 --- a/test/cypress/integration/client/others/clientMandates.spec.js +++ b/test/cypress/integration/client/others/clientMandates.spec.js @@ -7,7 +7,7 @@ describe('Handle Client mandates', () => { timeout: 5000, }); }); - it('Form loaded', () => { + it('Should load layout', () => { cy.get('.q-card').should('be.visible'); }); }); diff --git a/test/cypress/integration/client/others/clientSamples.spec.js b/test/cypress/integration/client/others/clientSamples.spec.js index 8689267e991..ed60661278e 100644 --- a/test/cypress/integration/client/others/clientSamples.spec.js +++ b/test/cypress/integration/client/others/clientSamples.spec.js @@ -3,11 +3,11 @@ describe('Handle Client samples', () => { beforeEach(() => { cy.viewport(1280, 720); cy.login('developer'); - cy.visit('#/customer/1110/others/samples', { + cy.visit('#/customer/1101/others/samples', { timeout: 5000, }); }); - it('Form loaded', () => { + it('Should load layout', () => { cy.get('.q-card').should('be.visible'); }); }); diff --git a/test/cypress/integration/client/others/clientUnpaid.spec.js b/test/cypress/integration/client/others/clientUnpaid.spec.js index 05b268ec4fe..db45d2cd291 100644 --- a/test/cypress/integration/client/others/clientUnpaid.spec.js +++ b/test/cypress/integration/client/others/clientUnpaid.spec.js @@ -7,7 +7,7 @@ describe('Handle Client unpaid', () => { timeout: 5000, }); }); - it('Form loaded', () => { + it('Should load layout', () => { cy.get('.q-card').should('be.visible'); }); }); diff --git a/test/cypress/integration/client/others/clientWebPayments.spec.js b/test/cypress/integration/client/others/clientWebPayments.spec.js index 65859b4ce90..5ef4002f419 100644 --- a/test/cypress/integration/client/others/clientWebPayments.spec.js +++ b/test/cypress/integration/client/others/clientWebPayments.spec.js @@ -3,11 +3,11 @@ describe('Handle Client web payments', () => { beforeEach(() => { cy.viewport(1280, 720); cy.login('developer'); - cy.visit('#/customer/1110/others/web-payments', { + cy.visit('#/customer/1101/others/web-payments', { timeout: 5000, }); }); - it('Form loaded', () => { + it('Should load layout', () => { cy.get('.q-card').should('be.visible'); }); });