0
0
Fork 0
salix-front-mindshore-fork2/test/cypress/integration/ticket/ticketBoxing.spec.js

21 lines
785 B
JavaScript
Raw Normal View History

2022-12-21 08:19:29 +00:00
/// <reference types="cypress" />
2023-04-27 08:40:00 +00:00
describe('TicketBoxing', () => {
2022-09-30 10:59:35 +00:00
beforeEach(() => {
const ticketId = 1;
2022-12-21 08:19:29 +00:00
cy.viewport(1280, 720);
cy.login('developer');
2022-09-30 10:59:35 +00:00
cy.visit(`/#/ticket/${ticketId}/boxing`);
});
it('should load expeditions of ticket', () => {
cy.get('div[class="q-item__label text-h6"]').eq(0).should('have.text', '#1');
cy.get('div[class="q-item__label text-h6"]').eq(1).should('have.text', '#2');
cy.get('div[class="q-item__label text-h6"]').eq(2).should('have.text', '#3');
});
it('should show error if not have video list', () => {
cy.get('div[class="q-item__label text-h6"]').eq(0).click();
cy.get('.q-notification__message').should('have.text', 'No videos available');
});
});