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 075b0b68c..06c3fce8f 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 36ffb5084..c418edb6a 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 406c6e426..10ab429e7 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 00e92d2bb..cba5770f9 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 794d39684..11cee6fc7 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 37ddbfeaf..7e4f2a41f 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 d8e8cd20e..509a981d4 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 921112dbd..050120e0d 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 c083e75b1..830942034 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 798861647..b64fcd27b 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 000000000..160b77335 --- /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 69ca9acc4..1e29bae5c 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 494acc440..44472afb5 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 8803e3f71..9f31fe878 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 81e999623..968c91d6c 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 8689267e9..ed6066127 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 05b268ec4..db45d2cd2 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 65859b4ce..5ef4002f4 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'); }); });