test: refs #7356 fix ticket*.spec.js
This commit is contained in:
parent
1be8e65fa1
commit
fbe3eae670
|
@ -1,5 +1,5 @@
|
||||||
/// <reference types="cypress" />
|
/// <reference types="cypress" />
|
||||||
describe('TicketRequest', () => {
|
describe('TicketBasicData', () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
cy.login('developer');
|
cy.login('developer');
|
||||||
cy.viewport(1920, 1080);
|
cy.viewport(1920, 1080);
|
||||||
|
|
|
@ -1,12 +1,11 @@
|
||||||
/// <reference types="cypress" />
|
/// <reference types="cypress" />
|
||||||
describe('TicketRequest', () => {
|
describe('TicketPictures', () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
cy.login('developer');
|
||||||
|
cy.viewport(1920, 1080);
|
||||||
cy.visit('/#/ticket/31/picture');
|
cy.visit('/#/ticket/31/picture');
|
||||||
});
|
});
|
||||||
it('Should load layout', () => {
|
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(':nth-child(1) > .q-card > .content').should('be.visible');
|
||||||
cy.get('.content > .link').should('be.visible').click();
|
cy.get('.content > .link').should('be.visible').click();
|
||||||
cy.dataCy('ItemDescriptor').should('exist');
|
cy.dataCy('ItemDescriptor').should('exist');
|
||||||
|
@ -14,5 +13,8 @@ describe('TicketRequest', () => {
|
||||||
cy.get('[data-cy="vnLvColor:"]').should('be.visible');
|
cy.get('[data-cy="vnLvColor:"]').should('be.visible');
|
||||||
cy.get('[data-cy="vnLvTallos:"]').should('be.visible');
|
cy.get('[data-cy="vnLvTallos:"]').should('be.visible');
|
||||||
cy.get('.q-mt-md').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');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -13,7 +13,7 @@ function checkedSVG(className, state) {
|
||||||
'none',
|
'none',
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
describe('TicketRequest', () => {
|
describe('TicketSaleTracking', () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
cy.login('developer');
|
cy.login('developer');
|
||||||
cy.viewport(1920, 1080);
|
cy.viewport(1920, 1080);
|
||||||
|
|
|
@ -1,12 +1,14 @@
|
||||||
/// <reference types="cypress" />
|
/// <reference types="cypress" />
|
||||||
describe('TicketRequest', () => {
|
describe('TicketService', () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
cy.login('developer');
|
||||||
|
cy.viewport(1920, 1080);
|
||||||
cy.visit('/#/ticket/31/service');
|
cy.visit('/#/ticket/31/service');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('Add and remove service', () => {
|
it('Add and remove service', () => {
|
||||||
cy.get('.q-page').should('be.visible');
|
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_icon"]').click();
|
||||||
cy.get('[data-cy="Description_input"]').clear();
|
cy.get('[data-cy="Description_input"]').clear();
|
||||||
cy.get('[data-cy="Description_input"]').type('test');
|
cy.get('[data-cy="Description_input"]').type('test');
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/// <reference types="cypress" />
|
/// <reference types="cypress" />
|
||||||
describe('TicketRequest', () => {
|
describe('TicketSms', () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
cy.login('developer');
|
cy.login('developer');
|
||||||
cy.viewport(1920, 1080);
|
cy.viewport(1920, 1080);
|
||||||
|
@ -9,7 +9,7 @@ describe('TicketRequest', () => {
|
||||||
it('Should load layout', () => {
|
it('Should load layout', () => {
|
||||||
cy.get('.q-page').should('be.visible');
|
cy.get('.q-page').should('be.visible');
|
||||||
cy.get('.q-infinite-scroll > :nth-child(1)').should(
|
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',
|
'0004 444444444Lorem ipsum dolor sit amet, consectetur adipiscing elit.2001-01-01 00:00:00OK',
|
||||||
);
|
);
|
||||||
cy.get(
|
cy.get(
|
||||||
|
|
|
@ -4,7 +4,7 @@ function checkRightLabel(index, value, tag = 'Volume: ') {
|
||||||
.should('be.visible')
|
.should('be.visible')
|
||||||
.should('have.text', `${tag}${value}`);
|
.should('have.text', `${tag}${value}`);
|
||||||
}
|
}
|
||||||
describe('TicketRequest', () => {
|
describe('TicketVolume', () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
cy.login('developer');
|
cy.login('developer');
|
||||||
cy.viewport(1920, 1080);
|
cy.viewport(1920, 1080);
|
||||||
|
|
Loading…
Reference in New Issue