test: #7356 Ticket e2e #1531

Merged
jsegarra merged 32 commits from 7356_e2e into dev 2025-04-08 12:31:24 +00:00
1 changed files with 10 additions and 4 deletions
Showing only changes of commit 6df58d021a - Show all commits

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');
});
});