forked from verdnatura/salix-front
Merge branch 'dev' into 6943_fix_customer_module
This commit is contained in:
commit
5803af7a74
|
@ -39,6 +39,7 @@ ticketSale:
|
||||||
agency: Agency
|
agency: Agency
|
||||||
address: Address
|
address: Address
|
||||||
advanceTickets:
|
advanceTickets:
|
||||||
|
preparation: Preparation
|
||||||
origin: Origin
|
origin: Origin
|
||||||
destination: Destination
|
destination: Destination
|
||||||
originAgency: 'Origin agency: {agency}'
|
originAgency: 'Origin agency: {agency}'
|
||||||
|
|
|
@ -86,6 +86,7 @@ weeklyTickets:
|
||||||
search: Buscar por tickets programados
|
search: Buscar por tickets programados
|
||||||
searchInfo: Buscar tickets programados por el identificador o el identificador del cliente
|
searchInfo: Buscar tickets programados por el identificador o el identificador del cliente
|
||||||
advanceTickets:
|
advanceTickets:
|
||||||
|
preparation: Preparación
|
||||||
origin: Origen
|
origin: Origen
|
||||||
destination: Destinatario
|
destination: Destinatario
|
||||||
originAgency: 'Agencia origen: {agency}'
|
originAgency: 'Agencia origen: {agency}'
|
||||||
|
|
|
@ -37,7 +37,7 @@ describe('ClaimDevelopment', () => {
|
||||||
cy.wait(['@workers', '@workers']);
|
cy.wait(['@workers', '@workers']);
|
||||||
cy.addCard();
|
cy.addCard();
|
||||||
|
|
||||||
cy.get(thirdRow).should('exist');
|
cy.waitForElement(thirdRow);
|
||||||
|
|
||||||
const rowData = [
|
const rowData = [
|
||||||
false,
|
false,
|
||||||
|
|
|
@ -34,22 +34,25 @@ describe('VnLocation', () => {
|
||||||
cy.visit('/#/supplier/567/fiscal-data', { timeout: 7000 });
|
cy.visit('/#/supplier/567/fiscal-data', { timeout: 7000 });
|
||||||
cy.waitForElement('.q-form');
|
cy.waitForElement('.q-form');
|
||||||
});
|
});
|
||||||
it('Fin by postalCode', () => {
|
it('Find by postalCode', () => {
|
||||||
const postCode = '46600';
|
const postCode = '46600';
|
||||||
|
const postCodeLabel = '46600, Valencia(Province one), España';
|
||||||
const firstOption = '[role="listbox"] .q-item:nth-child(1)';
|
const firstOption = '[role="listbox"] .q-item:nth-child(1)';
|
||||||
|
|
||||||
cy.get(inputLocation).click();
|
cy.get(inputLocation).click();
|
||||||
cy.get(inputLocation).clear();
|
cy.get(inputLocation).clear();
|
||||||
cy.get(inputLocation).type(postCode);
|
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(firstOption).click();
|
||||||
cy.get('.q-btn-group > .q-btn--standard > .q-btn__content > .q-icon').click();
|
cy.get('.q-btn-group > .q-btn--standard > .q-btn__content > .q-icon').click();
|
||||||
cy.reload();
|
cy.reload();
|
||||||
cy.waitForElement('.q-form');
|
cy.waitForElement('.q-form');
|
||||||
cy.get(inputLocation).should(
|
cy.get(inputLocation).should('have.value', postCodeLabel);
|
||||||
'have.value',
|
|
||||||
'46600 - Valencia(Province one), España'
|
|
||||||
);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('Create postCode', () => {
|
it('Create postCode', () => {
|
||||||
|
|
|
@ -140,6 +140,7 @@ Cypress.Commands.add('removeCard', () => {
|
||||||
});
|
});
|
||||||
Cypress.Commands.add('addCard', () => {
|
Cypress.Commands.add('addCard', () => {
|
||||||
cy.waitForElement('tbody');
|
cy.waitForElement('tbody');
|
||||||
|
cy.waitForElement('.q-page-sticky > div > .q-btn');
|
||||||
cy.get('.q-page-sticky > div > .q-btn').click();
|
cy.get('.q-page-sticky > div > .q-btn').click();
|
||||||
});
|
});
|
||||||
Cypress.Commands.add('clickConfirm', () => {
|
Cypress.Commands.add('clickConfirm', () => {
|
||||||
|
|
Loading…
Reference in New Issue