fix: refs #8944 fix e2e

This commit is contained in:
Jon Elias 2025-05-15 14:02:16 +02:00
parent c735729338
commit 81d1676f2f
2 changed files with 12 additions and 1 deletions

View File

@ -33,6 +33,16 @@ describe('Client fiscal data', () => {
});
it('check as equalizated', () => {
cy.get('[data-cy="vnCheckboxInvoice by address"] > .q-checkbox__inner').then(
($el) => {
if (!$el.hasClass('q-checkbox__inner--truthy')) {
cy.wrap($el).click({ force: true });
}
},
);
cy.get(
'[data-cy="vnCheckboxInvoice by address"] > .q-checkbox__inner',
).should('have.class', 'q-checkbox__inner--truthy');
cy.dataCy('vnCheckboxIs equalizated').click();
cy.get('.q-btn-group > .q-btn--standard > .q-btn__content').click();
@ -40,7 +50,6 @@ describe('Client fiscal data', () => {
'contain',
'You changed the equalization tax',
);
cy.get('.q-card > :nth-child(2) > span').should(
'have.text',
'Do you want to spread the change?',

View File

@ -57,7 +57,9 @@ describe('ZoneCalendar', { testIsolation: true }, () => {
cy.get(
'.q-current-day > .q-calendar-month__day--content > [data-cy="ZoneCalendarDay"]',
).click();
cy.intercept('GET', /\/api\/Tickets/).as('tickets');
cy.get('.q-mt-lg > .q-btn--standard').click();
cy.wait('@tickets');
cy.checkNotification(
'Can not close this zone because there are tickets programmed for that day',
);