diff --git a/test/cypress/integration/client/clientAddress.spec.js b/test/cypress/integration/client/clientAddress.spec.js new file mode 100644 index 000000000..06c3fce8f --- /dev/null +++ b/test/cypress/integration/client/clientAddress.spec.js @@ -0,0 +1,13 @@ +/// +describe('Handle Client consignee', () => { + beforeEach(() => { + cy.viewport(1280, 720); + cy.login('developer'); + cy.visit('#/customer/1110/address', { + timeout: 5000, + }); + }); + 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 new file mode 100644 index 000000000..c418edb6a --- /dev/null +++ b/test/cypress/integration/client/clientBalance.spec.js @@ -0,0 +1,13 @@ +/// +describe('Handle Client balance', () => { + beforeEach(() => { + cy.viewport(1280, 720); + cy.login('developer'); + cy.visit('#/customer/1101/balance', { + timeout: 5000, + }); + }); + 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 new file mode 100644 index 000000000..10ab429e7 --- /dev/null +++ b/test/cypress/integration/client/clientBasicData.spec.js @@ -0,0 +1,13 @@ +/// +describe('Handle Client basic data', () => { + beforeEach(() => { + cy.viewport(1280, 720); + cy.login('developer'); + cy.visit('#/customer/1110/basic-data', { + timeout: 5000, + }); + }); + 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 new file mode 100644 index 000000000..cba5770f9 --- /dev/null +++ b/test/cypress/integration/client/clientBillingData.spec.js @@ -0,0 +1,13 @@ +/// +describe('Handle Client billing data', () => { + beforeEach(() => { + cy.viewport(1280, 720); + cy.login('developer'); + cy.visit('#/customer/1110/billing-data', { + timeout: 5000, + }); + }); + 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 new file mode 100644 index 000000000..11cee6fc7 --- /dev/null +++ b/test/cypress/integration/client/clientCredits.spec.js @@ -0,0 +1,13 @@ +/// +describe('Handle Client credits', () => { + beforeEach(() => { + cy.viewport(1280, 720); + cy.login('developer'); + cy.visit('#/customer/1110/credits', { + timeout: 5000, + }); + }); + 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 new file mode 100644 index 000000000..7e4f2a41f --- /dev/null +++ b/test/cypress/integration/client/clientFiscalData.spec.js @@ -0,0 +1,13 @@ +/// +describe('Handle Client fiscal data', () => { + beforeEach(() => { + cy.viewport(1280, 720); + cy.login('developer'); + cy.visit('#/customer/1110/fiscal-data', { + timeout: 5000, + }); + }); + 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 new file mode 100644 index 000000000..509a981d4 --- /dev/null +++ b/test/cypress/integration/client/clientGreuges.spec.js @@ -0,0 +1,13 @@ +/// +describe('Handle Client greuges', () => { + beforeEach(() => { + cy.viewport(1280, 720); + cy.login('developer'); + cy.visit('#/customer/1101/greuges', { + timeout: 5000, + }); + }); + it('Should load layout', () => { + cy.get('.q-card').should('be.visible'); + }); +}); diff --git a/test/cypress/integration/client/clientList.spec.js b/test/cypress/integration/client/clientList.spec.js new file mode 100644 index 000000000..6cdadd101 --- /dev/null +++ b/test/cypress/integration/client/clientList.spec.js @@ -0,0 +1,63 @@ +/// +describe('Handle Client list', () => { + beforeEach(() => { + cy.viewport(1280, 720); + cy.login('developer'); + cy.visit('/#/customer/list', { + timeout: 5000, + onBeforeLoad(win) { + cy.stub(win, 'open'); + }, + }); + }); + + it('Client list create new client', () => { + cy.get('.q-page-sticky > div > .q-btn > .q-btn__content > .q-icon').click(); + const data = { + Name: { val: 'Name 1' }, + 'Social name': { val: 'TEST 1' }, + 'Tax number': { val: '20852113Z' }, + 'Web user': { val: 'user_test_1' }, + Street: { val: 'C/ STREET 1' }, + Email: { val: 'user.test@1.com' }, + 'Business type': { val: 'Otros', type: 'select' }, + 'Sales person': { val: 'salesboss', type: 'select' }, + Location: { val: '46000, Valencia(Province one), EspaƱa', type: 'select' }, + }; + cy.fillInForm(data); + + cy.get('.q-mt-lg > .q-btn--standard').click(); + + cy.checkNotification('created'); + cy.url().should('include', '/summary'); + }); + it('Client list search client', () => { + const search = 'Jessica Jones'; + cy.searchByLabel('Name', search); + + cy.get('.title > span').should('have.text', search); + let id = null; + cy.get('.q-item > .q-item__label').then((text) => { + id = text.text().trim().split('#')[1]; + cy.get('.q-item > .q-item__label').should('have.text', ` #${id}`); + cy.url().should('include', `/customer/${id}/summary`); + }); + }); + + it('Client founded create ticket', () => { + const search = 'Jessica Jones'; + cy.searchByLabel('Name', search); + cy.clickButtonsDescriptor(2); + cy.waitForElement('#formModel'); + cy.waitForElement('.q-form'); + cy.checkValueForm(1, search); + }); + it('Client founded create order', () => { + const search = 'Jessica Jones'; + cy.searchByLabel('Name', search); + cy.clickButtonsDescriptor(4); + cy.waitForElement('#formModel'); + cy.waitForElement('.q-form'); + cy.checkValueForm(2, search); + }); +}); diff --git a/test/cypress/integration/client/clientNotes.spec.js b/test/cypress/integration/client/clientNotes.spec.js new file mode 100644 index 000000000..050120e0d --- /dev/null +++ b/test/cypress/integration/client/clientNotes.spec.js @@ -0,0 +1,13 @@ +/// +describe('Handle Client notes', () => { + beforeEach(() => { + cy.viewport(1280, 720); + cy.login('developer'); + cy.visit('#/customer/1110/notes', { + timeout: 5000, + }); + }); + 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 new file mode 100644 index 000000000..830942034 --- /dev/null +++ b/test/cypress/integration/client/clientRecoveries.spec.js @@ -0,0 +1,13 @@ +/// +describe('Handle Client recoveries', () => { + beforeEach(() => { + cy.viewport(1280, 720); + cy.login('developer'); + cy.visit('#/customer/1101/recoveries', { + timeout: 5000, + }); + }); + 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 new file mode 100644 index 000000000..b64fcd27b --- /dev/null +++ b/test/cypress/integration/client/clientWebAccess.spec.js @@ -0,0 +1,13 @@ +/// +describe('Handle Client web-access', () => { + beforeEach(() => { + cy.viewport(1280, 720); + cy.login('developer'); + cy.visit('#/customer/1110/web-access', { + timeout: 5000, + }); + }); + 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 new file mode 100644 index 000000000..1e29bae5c --- /dev/null +++ b/test/cypress/integration/client/credit-management/clientCreditOpinion.spec.js @@ -0,0 +1,13 @@ +/// +describe('Handle Client credit opinion', () => { + beforeEach(() => { + cy.viewport(1280, 720); + cy.login('developer'); + cy.visit('#/customer/1110/credit-management/credit-opinion', { + timeout: 5000, + }); + }); + 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 new file mode 100644 index 000000000..44472afb5 --- /dev/null +++ b/test/cypress/integration/client/others/clientConsumption.spec.js @@ -0,0 +1,13 @@ +/// +describe('Handle Client consumption', () => { + beforeEach(() => { + cy.viewport(1280, 720); + cy.login('developer'); + cy.visit('#/customer/1101/others/consumption', { + timeout: 5000, + }); + }); + 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 new file mode 100644 index 000000000..9f31fe878 --- /dev/null +++ b/test/cypress/integration/client/others/clientContacts.spec.js @@ -0,0 +1,13 @@ +/// +describe('Handle Client contacts', () => { + beforeEach(() => { + cy.viewport(1280, 720); + cy.login('developer'); + cy.visit('#/customer/1101/others/contacts', { + timeout: 5000, + }); + }); + 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 new file mode 100644 index 000000000..968c91d6c --- /dev/null +++ b/test/cypress/integration/client/others/clientMandates.spec.js @@ -0,0 +1,13 @@ +/// +describe('Handle Client mandates', () => { + beforeEach(() => { + cy.viewport(1280, 720); + cy.login('developer'); + cy.visit('#/customer/1110/others/mandates', { + timeout: 5000, + }); + }); + 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 new file mode 100644 index 000000000..ed6066127 --- /dev/null +++ b/test/cypress/integration/client/others/clientSamples.spec.js @@ -0,0 +1,13 @@ +/// +describe('Handle Client samples', () => { + beforeEach(() => { + cy.viewport(1280, 720); + cy.login('developer'); + cy.visit('#/customer/1101/others/samples', { + timeout: 5000, + }); + }); + 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 new file mode 100644 index 000000000..db45d2cd2 --- /dev/null +++ b/test/cypress/integration/client/others/clientUnpaid.spec.js @@ -0,0 +1,13 @@ +/// +describe('Handle Client unpaid', () => { + beforeEach(() => { + cy.viewport(1280, 720); + cy.login('developer'); + cy.visit('#/customer/1110/others/unpaid', { + timeout: 5000, + }); + }); + 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 new file mode 100644 index 000000000..5ef4002f4 --- /dev/null +++ b/test/cypress/integration/client/others/clientWebPayments.spec.js @@ -0,0 +1,13 @@ +/// +describe('Handle Client web payments', () => { + beforeEach(() => { + cy.viewport(1280, 720); + cy.login('developer'); + cy.visit('#/customer/1101/others/web-payments', { + timeout: 5000, + }); + }); + it('Should load layout', () => { + cy.get('.q-card').should('be.visible'); + }); +});