Merge branch '8684-itemRefactorAndE2e' of https://gitea.verdnatura.es/verdnatura/salix-front into 8684-itemRefactorAndE2e
gitea/salix-front/pipeline/pr-dev This commit is unstable
Details
gitea/salix-front/pipeline/pr-dev This commit is unstable
Details
This commit is contained in:
commit
8120320a15
|
@ -72,7 +72,7 @@ const getBankEntities = (data) => {
|
||||||
:acls="[{ model: 'BankEntity', props: '*', accessType: 'WRITE' }]"
|
:acls="[{ model: 'BankEntity', props: '*', accessType: 'WRITE' }]"
|
||||||
:options="bankEntities"
|
:options="bankEntities"
|
||||||
hide-selected
|
hide-selected
|
||||||
option-label="name"
|
option-label="bic"
|
||||||
option-value="id"
|
option-value="id"
|
||||||
v-model="bankEntityFk"
|
v-model="bankEntityFk"
|
||||||
@update:model-value="$emit('updateBic', { iban, bankEntityFk })"
|
@update:model-value="$emit('updateBic', { iban, bankEntityFk })"
|
||||||
|
|
|
@ -40,4 +40,11 @@ describe('VnBankDetail Component', () => {
|
||||||
await vm.autofillBic('ES1234567891324567891234');
|
await vm.autofillBic('ES1234567891324567891234');
|
||||||
expect(vm.bankEntityFk).toBe(null);
|
expect(vm.bankEntityFk).toBe(null);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it('should not update bankEntityFk if IBAN country is not ES', async () => {
|
||||||
|
vm.bankEntities = bankEntities;
|
||||||
|
|
||||||
|
await vm.autofillBic('FR1420041010050500013M02606');
|
||||||
|
expect(vm.bankEntityFk).toBe(null);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -547,6 +547,7 @@ watch(route, () => {
|
||||||
},
|
},
|
||||||
]"
|
]"
|
||||||
v-text="col.value"
|
v-text="col.value"
|
||||||
|
:data-cy="`extra-community-${col.name}`"
|
||||||
/>
|
/>
|
||||||
<TravelDescriptorProxy
|
<TravelDescriptorProxy
|
||||||
v-if="col.name === 'id'"
|
v-if="col.name === 'id'"
|
||||||
|
|
|
@ -0,0 +1,16 @@
|
||||||
|
describe('Travel Extracommunity', () => {
|
||||||
|
it('Should show travels', () => {
|
||||||
|
cy.login('logistic');
|
||||||
|
cy.visit(`/#/travel/extra-community`);
|
||||||
|
cy.get('.q-page').should('be.visible');
|
||||||
|
});
|
||||||
|
|
||||||
|
it('Should show travels when user is supplier', () => {
|
||||||
|
cy.login('petterparker');
|
||||||
|
cy.visit(`/#/travel/extra-community`);
|
||||||
|
cy.get('[data-cy="vnFilterPanelChip_continent"] > .q-chip__icon--remove').click();
|
||||||
|
cy.dataCy('extra-community-cargoSupplierNickname').each(($el) => {
|
||||||
|
cy.wrap($el).should('contain.text', 'The farmer');
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
Loading…
Reference in New Issue