test: refs #7356 ticketSaleTracking

This commit is contained in:
Javier Segarra 2025-04-02 15:25:27 +02:00
parent 21c9abf273
commit 6df58d021a
1 changed files with 10 additions and 4 deletions

View File

@ -13,6 +13,13 @@ function checkedSVG(className, state) {
'none',
);
}
function clickIconAndCloseDialog(n) {
cy.get(
`:nth-child(1) > :nth-child(6) > :nth-child(${n}) > .q-btn__content > .q-icon`,
).click();
}
describe('TicketSaleTracking', () => {
beforeEach(() => {
cy.login('developer');
@ -33,15 +40,14 @@ describe('TicketSaleTracking', () => {
cy.get(
':nth-child(1) > :nth-child(6) > :nth-child(2) > .q-btn__content > .q-icon',
).click();
cy.get('.q-dialog__backdrop').click();
cy.get('body').type('{esc}');
cy.get(
':nth-child(1) > :nth-child(6) > :nth-child(1) > .q-btn__content > .q-icon',
).click();
cy.get('.q-dialog__backdrop').click();
cy.get(
':nth-child(1) > :nth-child(2) > div > .link > .q-btn > .q-btn__content',
'.q-dialog__inner > .q-table__container :nth-child(1) > :nth-child(2) .link.q-btn',
).click();
cy.dataCy('ItemDescriptor').should('exist');
cy.dataCy('WorkerDescriptor').should('exist');
});
});