forked from verdnatura/salix-front
refs #6104 fix tests
This commit is contained in:
parent
42c34f7a46
commit
52622d9a00
|
@ -287,9 +287,8 @@ function setDate(type) {
|
||||||
return {
|
return {
|
||||||
between: [from, to],
|
between: [from, to],
|
||||||
};
|
};
|
||||||
} else {
|
|
||||||
return { lte: to };
|
|
||||||
}
|
}
|
||||||
|
return { lte: to };
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -657,6 +656,7 @@ setLogTree();
|
||||||
:options="actions"
|
:options="actions"
|
||||||
@update:model-value="selectFilter('action')"
|
@update:model-value="selectFilter('action')"
|
||||||
@clear="() => selectFilter('action')"
|
@clear="() => selectFilter('action')"
|
||||||
|
hide-selected
|
||||||
/>
|
/>
|
||||||
</QItem>
|
</QItem>
|
||||||
<QItem class="q-mt-sm">
|
<QItem class="q-mt-sm">
|
||||||
|
@ -686,6 +686,7 @@ setLogTree();
|
||||||
option-value="id"
|
option-value="id"
|
||||||
:options="workers"
|
:options="workers"
|
||||||
@update:model-value="selectFilter('userSelect')"
|
@update:model-value="selectFilter('userSelect')"
|
||||||
|
hide-selected
|
||||||
>
|
>
|
||||||
<template #option="{ opt, itemProps }">
|
<template #option="{ opt, itemProps }">
|
||||||
<QItem
|
<QItem
|
||||||
|
|
|
@ -7,7 +7,7 @@ describe('VnLog', () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
cy.login('developer');
|
cy.login('developer');
|
||||||
cy.visit(`/#/claim/${1}/log`);
|
cy.visit(`/#/claim/${1}/log`);
|
||||||
cy.openRightMenu();
|
cy.openRightMenu('.timeline');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should filter by insert actions', () => {
|
it('should filter by insert actions', () => {
|
||||||
|
|
|
@ -51,15 +51,14 @@ Cypress.Commands.add('getValue', (selector) => {
|
||||||
return cy.get(selector + '.q-checkbox__inner');
|
return cy.get(selector + '.q-checkbox__inner');
|
||||||
}
|
}
|
||||||
// Si es un QSelect
|
// Si es un QSelect
|
||||||
else if ($el.find('.q-select__dropdown-icon').length) {
|
if ($el.find('.q-select__dropdown-icon').length) {
|
||||||
return cy.get(
|
return cy.get(
|
||||||
selector +
|
selector +
|
||||||
'> .q-field > .q-field__inner > .q-field__control > .q-field__control-container > .q-field__native > input'
|
'> .q-field > .q-field__inner > .q-field__control > .q-field__control-container > .q-field__native > input'
|
||||||
);
|
);
|
||||||
} else {
|
|
||||||
// Puedes añadir un log o lanzar un error si el elemento no es reconocido
|
|
||||||
cy.log('Elemento no soportado');
|
|
||||||
}
|
}
|
||||||
|
// Puedes añadir un log o lanzar un error si el elemento no es reconocido
|
||||||
|
cy.log('Elemento no soportado');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -136,8 +135,9 @@ Cypress.Commands.add('openListSummary', (row) => {
|
||||||
cy.get('.card-list-body .actions .q-btn:nth-child(2)').eq(row).click();
|
cy.get('.card-list-body .actions .q-btn:nth-child(2)').eq(row).click();
|
||||||
});
|
});
|
||||||
|
|
||||||
Cypress.Commands.add('openRightMenu', () => {
|
Cypress.Commands.add('openRightMenu', (element) => {
|
||||||
cy.get('.q-gutter-x-sm > .q-btn > .q-btn__content > .q-icon').click();
|
if (element) cy.waitForElement(element);
|
||||||
|
cy.get('#actions-append').click();
|
||||||
});
|
});
|
||||||
|
|
||||||
Cypress.Commands.add('validateContent', (selector, expectedValue) => {
|
Cypress.Commands.add('validateContent', (selector, expectedValue) => {
|
||||||
|
|
Loading…
Reference in New Issue