fix: refs #8944 fix e2e
This commit is contained in:
parent
c735729338
commit
81d1676f2f
|
@ -33,6 +33,16 @@ describe('Client fiscal data', () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
it('check as equalizated', () => {
|
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.dataCy('vnCheckboxIs equalizated').click();
|
||||||
cy.get('.q-btn-group > .q-btn--standard > .q-btn__content').click();
|
cy.get('.q-btn-group > .q-btn--standard > .q-btn__content').click();
|
||||||
|
|
||||||
|
@ -40,7 +50,6 @@ describe('Client fiscal data', () => {
|
||||||
'contain',
|
'contain',
|
||||||
'You changed the equalization tax',
|
'You changed the equalization tax',
|
||||||
);
|
);
|
||||||
|
|
||||||
cy.get('.q-card > :nth-child(2) > span').should(
|
cy.get('.q-card > :nth-child(2) > span').should(
|
||||||
'have.text',
|
'have.text',
|
||||||
'Do you want to spread the change?',
|
'Do you want to spread the change?',
|
||||||
|
|
|
@ -57,7 +57,9 @@ describe('ZoneCalendar', { testIsolation: true }, () => {
|
||||||
cy.get(
|
cy.get(
|
||||||
'.q-current-day > .q-calendar-month__day--content > [data-cy="ZoneCalendarDay"]',
|
'.q-current-day > .q-calendar-month__day--content > [data-cy="ZoneCalendarDay"]',
|
||||||
).click();
|
).click();
|
||||||
|
cy.intercept('GET', /\/api\/Tickets/).as('tickets');
|
||||||
cy.get('.q-mt-lg > .q-btn--standard').click();
|
cy.get('.q-mt-lg > .q-btn--standard').click();
|
||||||
|
cy.wait('@tickets');
|
||||||
cy.checkNotification(
|
cy.checkNotification(
|
||||||
'Can not close this zone because there are tickets programmed for that day',
|
'Can not close this zone because there are tickets programmed for that day',
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue