test: refs #7356 fix ticket*.spec.js

This commit is contained in:
Javier Segarra 2025-03-25 09:39:30 +01:00
parent 1be8e65fa1
commit fbe3eae670
6 changed files with 15 additions and 11 deletions

View File

@ -1,5 +1,5 @@
/// <reference types="cypress" />
describe('TicketRequest', () => {
describe('TicketBasicData', () => {
beforeEach(() => {
cy.login('developer');
cy.viewport(1920, 1080);

View File

@ -1,12 +1,11 @@
/// <reference types="cypress" />
describe('TicketRequest', () => {
describe('TicketPictures', () => {
beforeEach(() => {
cy.login('developer');
cy.viewport(1920, 1080);
cy.visit('/#/ticket/31/picture');
});
it('Should load layout', () => {
cy.get(
':nth-child(1) > .q-card > .img-wrapper > .q-img > .q-img__container > .q-img__image',
).should('be.visible');
cy.get(':nth-child(1) > .q-card > .content').should('be.visible');
cy.get('.content > .link').should('be.visible').click();
cy.dataCy('ItemDescriptor').should('exist');
@ -14,5 +13,8 @@ describe('TicketRequest', () => {
cy.get('[data-cy="vnLvColor:"]').should('be.visible');
cy.get('[data-cy="vnLvTallos:"]').should('be.visible');
cy.get('.q-mt-md').should('be.visible');
cy.get(
':nth-child(1) > .q-card > .img-wrapper > .q-img > .q-img__container > .q-img__image',
).should('be.visible');
});
});

View File

@ -13,7 +13,7 @@ function checkedSVG(className, state) {
'none',
);
}
describe('TicketRequest', () => {
describe('TicketSaleTracking', () => {
beforeEach(() => {
cy.login('developer');
cy.viewport(1920, 1080);

View File

@ -1,12 +1,14 @@
/// <reference types="cypress" />
describe('TicketRequest', () => {
describe('TicketService', () => {
beforeEach(() => {
cy.login('developer');
cy.viewport(1920, 1080);
cy.visit('/#/ticket/31/service');
});
it('Add and remove service', () => {
cy.get('.q-page').should('be.visible');
cy.get('.q-page-sticky > div > .q-btn > .q-btn__content > .q-icon').click();
cy.addBtnClick();
cy.get('[data-cy="Description_icon"]').click();
cy.get('[data-cy="Description_input"]').clear();
cy.get('[data-cy="Description_input"]').type('test');

View File

@ -1,5 +1,5 @@
/// <reference types="cypress" />
describe('TicketRequest', () => {
describe('TicketSms', () => {
beforeEach(() => {
cy.login('developer');
cy.viewport(1920, 1080);
@ -9,7 +9,7 @@ describe('TicketRequest', () => {
it('Should load layout', () => {
cy.get('.q-page').should('be.visible');
cy.get('.q-infinite-scroll > :nth-child(1)').should(
'have.text',
'contain.text',
'0004 444444444Lorem ipsum dolor sit amet, consectetur adipiscing elit.2001-01-01 00:00:00OK',
);
cy.get(

View File

@ -4,7 +4,7 @@ function checkRightLabel(index, value, tag = 'Volume: ') {
.should('be.visible')
.should('have.text', `${tag}${value}`);
}
describe('TicketRequest', () => {
describe('TicketVolume', () => {
beforeEach(() => {
cy.login('developer');
cy.viewport(1920, 1080);