Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix-front into 8277-createEntryControl
gitea/salix-front/pipeline/pr-dev There was a failure building this commit
Details
gitea/salix-front/pipeline/pr-dev There was a failure building this commit
Details
This commit is contained in:
commit
9434cdf851
|
@ -289,7 +289,7 @@ const sumRisk = ({ clientRisks }) => {
|
|||
<VnLv
|
||||
v-if="entity.creditInsurance"
|
||||
:label="t('customer.summary.securedCredit')"
|
||||
:value="toCurrency(entity.creditInsurance)"
|
||||
:value="`${toCurrency(entity.creditInsurance)} (${entity.classifications[0]?.insurances[0]?.grade || ''})`"
|
||||
:info="t('customer.summary.securedCreditInfo')"
|
||||
/>
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
describe('InvoiceInList', () => {
|
||||
const firstRow = 'tbody.q-virtual-scroll__content tr:nth-child(1)';
|
||||
const firstId = `${firstRow} > td:nth-child(2) span`;
|
||||
const firstDetailBtn = `${firstRow} .q-btn:nth-child(1)`;
|
||||
const invoiceId = '6';
|
||||
const summaryHeaders = (opt) => `.summaryBody > .${opt} > .q-pb-lg > .header-link`;
|
||||
const mockInvoiceRef = `createMockInvoice${Math.floor(Math.random() * 100)}`;
|
||||
const mock = {
|
||||
|
@ -31,7 +31,13 @@ describe('InvoiceInList', () => {
|
|||
});
|
||||
|
||||
it('should open the details', () => {
|
||||
cy.get(firstDetailBtn).click();
|
||||
cy.get('[data-col-field="id"]').then(($cells) => {
|
||||
const exactMatch = [...$cells].find(
|
||||
(cell) => cell.textContent.trim() === invoiceId,
|
||||
);
|
||||
expect(exactMatch).to.exist;
|
||||
cy.wrap(exactMatch).closest('tr').find('.q-btn:nth-child(1)').click();
|
||||
});
|
||||
cy.get(summaryHeaders('max-width')).contains('Basic data');
|
||||
cy.get(summaryHeaders('vat')).contains('Vat');
|
||||
});
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
describe('Route extended list', () => {
|
||||
describe.skip('Route extended list', () => {
|
||||
const getSelector = (colField) => `tr:last-child > [data-col-field="${colField}"]`;
|
||||
|
||||
const selectors = {
|
||||
|
|
Loading…
Reference in New Issue