test: refs #7356 clean commands

This commit is contained in:
Javier Segarra 2025-03-28 00:38:47 +01:00
parent bdfc1fa309
commit 4ae9b69e11
3 changed files with 15 additions and 5 deletions

View File

@ -260,6 +260,7 @@ const closeEventForm = () => {
onDataSaved: ({ id }) => tableRef.redirect(`${id}/location`),
formInitialData: {},
}"
table-height="85vh"
v-model:selected="selectedRows"
:table="{
'row-key': 'id',

View File

@ -2,9 +2,9 @@
const firstRow = 'tbody > :nth-child(1)';
describe('TicketSale', () => {
describe('Ticket #23', () => {
describe('#23', () => {
beforeEach(() => {
cy.login('developer');
cy.login('salesPerson');
cy.viewport(1920, 1080);
cy.visit('/#/ticket/23/sale');
});
@ -76,7 +76,7 @@ describe('TicketSale', () => {
.should('have.value', `${quantity}`);
});
});
describe('Ticket to add claim #24', () => {
describe('#24 add claim', () => {
beforeEach(() => {
cy.login('developer');
cy.viewport(1920, 1080);
@ -95,7 +95,7 @@ describe('TicketSale', () => {
cy.confirmVnConfirm();
});
});
describe('Free ticket #31', () => {
describe('#31 free ticket', () => {
beforeEach(() => {
cy.login('developer');
cy.viewport(1920, 1080);
@ -180,7 +180,7 @@ describe('TicketSale', () => {
cy.url().should('match', /\/ticket\/31\/log/);
});
});
describe('Ticket to transfer #32', () => {
describe('#32 transfer', () => {
beforeEach(() => {
cy.login('developer');
cy.viewport(1920, 1080);

View File

@ -631,3 +631,12 @@ Cypress.Commands.add('checkQueryParams', (expectedParams = {}) => {
}
});
});
Cypress.Commands.add('validateScrollContent', (validations) => {
validations.forEach(({ row, col, text }) => {
cy.get(`.q-scrollarea__content > :nth-child(${row}) > :nth-child(${col})`).should(
'have.text',
text,
);
});
});