test: rename test

This commit is contained in:
Javier Segarra 2025-02-23 13:11:57 +01:00
parent 93326db2d9
commit 1ce2009ca8
1 changed files with 3 additions and 3 deletions

View File

@ -11,7 +11,7 @@ describe('TicketFilter', () => {
cy.waitForElement('.q-page');
cy.intercept('GET', /\/api\/Tickets\/filter/).as('ticketFilter');
cy.searchBtnFilterPanel();
cy.wait('@ticketFilter').then(({ request }) => {
cy.waitRequest('@ticketFilter', ({ request }) => {
const { query } = request;
expect(query).to.have.property('from');
expect(query).to.have.property('to');
@ -40,12 +40,12 @@ describe('TicketFilter', () => {
cy.location('href').should('contain', '#/ticket/999999');
});
});
function today() {
function today(date) {
// return new Date().toISOString().split('T')[0];
return new Intl.DateTimeFormat('es-ES', {
day: '2-digit',
month: '2-digit',
year: 'numeric',
}).format(new Date());
}).format(date ?? new Date());
}