diff --git a/src/components/common/VnInputDate.vue b/src/components/common/VnInputDate.vue
index 8e8f843e9..a8888aad8 100644
--- a/src/components/common/VnInputDate.vue
+++ b/src/components/common/VnInputDate.vue
@@ -83,14 +83,13 @@ const styleAttrs = computed(() => {
outlined: true,
rounded: true,
}
- : { eventColor: handleEventColor };
+ : {};
});
const manageDate = (date) => {
formattedDate.value = date;
isPopupOpen.value = false;
};
-const handleEventColor = (date) => (date === Date.now() ? null : 'orange');
@@ -144,21 +143,6 @@ const handleEventColor = (date) => (date === Date.now() ? null : 'orange');
-
es:
Open date: Abrir fecha
diff --git a/src/components/ui/VnConfirm.vue b/src/components/ui/VnConfirm.vue
index c86ce34fa..a02b56bdb 100644
--- a/src/components/ui/VnConfirm.vue
+++ b/src/components/ui/VnConfirm.vue
@@ -61,7 +61,7 @@ function cancel() {
}
-
+
-
+
diff --git a/test/cypress/integration/ticket/negative/TicketLackList.spec.js b/test/cypress/integration/ticket/negative/TicketLackList.spec.js
index ed5279f4d..4bb285945 100644
--- a/test/cypress/integration/ticket/negative/TicketLackList.spec.js
+++ b/test/cypress/integration/ticket/negative/TicketLackList.spec.js
@@ -2,15 +2,38 @@
describe('Ticket Lack list', () => {
beforeEach(() => {
cy.login('developer');
- cy.visit(`/#/ticket/negative`);
});
describe('Filters', () => {});
describe('Table actions', () => {
- it('Open record', () => {
- cy.get('.q-virtual-scroll__content > :nth-child(1) > .sticky').click();
+ it('should display only one row in the lack list', () => {
+ // Espera a que la solicitud interceptada se complete
+ cy.intercept('GET', /Tickets\/itemLack\?.*$/, {
+ statusCode: 200,
+ body: [
+ {
+ itemFk: 5,
+ longName: 'Ranged weapon pistol 9mm',
+ warehouseFk: 1,
+ producer: null,
+ size: 15,
+ category: null,
+ warehouse: 'Warehouse One',
+ lack: -50,
+ inkFk: 'SLV',
+ timed: '2025-01-25T22:59:00.000Z',
+ minTimed: '23:59',
+ originFk: 'Holand',
+ },
+ ],
+ }).as('getLack'); // and assign an alias
+ cy.visit('/#/ticket/negative');
+ cy.wait('@getLack', { timeout: 10000 });
+
+ // Verifica que solo se muestre una fila en la lista
+ cy.get('.q-virtual-scroll__content > :nth-child(1) > .sticky').click();
cy.location('href').should('contain', '#/ticket/negative/5');
});
});