fix: refs #8944 zone calendar e2e
gitea/salix-front/pipeline/pr-test This commit looks good Details

This commit is contained in:
Jon Elias 2025-05-19 07:57:25 +02:00
parent 8f01bfdcb3
commit 9e3c7430e7
1 changed files with 12 additions and 16 deletions

View File

@ -40,7 +40,7 @@ describe('ZoneCalendar', { testIsolation: true }, () => {
it('should exclude an event', () => { it('should exclude an event', () => {
cy.get('.q-mb-sm > .q-radio__inner').click(); cy.get('.q-mb-sm > .q-radio__inner').click();
cy.get('.q-current-day > .q-calendar-month__day--label__wrapper').click(); cy.get('.q-current-day > .q-calendar-month__day--label__wrapper').click();
cy.get('.q-mt-lg > .q-btn--standard').click(); cy.get(submitBtn).click();
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();
@ -48,19 +48,15 @@ describe('ZoneCalendar', { testIsolation: true }, () => {
cy.dataCy('VnConfirm_confirm').click(); cy.dataCy('VnConfirm_confirm').click();
}); });
it( it('should not exclude an event if there are tickets for that zone and day', () => {
'should not exclude an event if there are tickets for that zone and day', cy.get('[data-cy="vn-searchbar_input"]').type('3{enter}');
{ testIsoaltion: true }, cy.get('[aria-label="Exclude"] > .q-radio__label').click();
() => { cy.get(
cy.visit(`/#/zone/3/events`); '.q-current-day > .q-calendar-month__day--content > [data-cy="ZoneCalendarDay"]',
cy.get('.q-mb-sm > .q-radio__inner').click(); ).click();
cy.get( cy.get(submitBtn).click();
'.q-current-day > .q-calendar-month__day--content > [data-cy="ZoneCalendarDay"]', cy.checkNotification(
).click(); 'Can not close this zone because there are tickets programmed for that day',
cy.get('.q-mt-lg > .q-btn--standard').click(); );
cy.checkNotification( });
'Can not close this zone because there are tickets programmed for that day',
);
},
);
}); });