33 lines
1.8 KiB
JavaScript
33 lines
1.8 KiB
JavaScript
describe.skip('Ticket services path', () => {
|
|
describe('as employee', () => {
|
|
beforeEach(() => {
|
|
const ticketId = 1;
|
|
cy.viewport(1280, 720);
|
|
cy.login('developer');
|
|
cy.visit(`/#/ticket/${ticketId}/boxing`);
|
|
});
|
|
it('should log in as employee, search for an invoice and get to services', async () => {});
|
|
it('should find the add descripton button disabled for this user role', async () => {});
|
|
it('should receive an error if you attempt to save a service without access rights', async () => {});
|
|
});
|
|
describe('as administrative', () => {
|
|
beforeEach(() => {
|
|
const ticketId = 1;
|
|
cy.viewport(1280, 720);
|
|
cy.login('developer');
|
|
cy.visit(`/#/ticket/${ticketId}/boxing`);
|
|
});
|
|
it('should navigate to the services of a target ticket', async () => {});
|
|
it('should click on the add button to prepare the form to create a new service', async () => {});
|
|
it('should receive an error if you attempt to save it with empty fields', async () => {});
|
|
it('should click on the add new service type to open the dialog', async () => {});
|
|
it('should receive an error if service type is empty on submit', async () => {});
|
|
it('should create a new service type then add price then create the service', async () => {});
|
|
it('should confirm the service description was created correctly', async () => {});
|
|
it('should confirm the service quantity was created correctly', async () => {});
|
|
it('should confirm the service price was created correctly', async () => {});
|
|
it('should delete the service', async () => {});
|
|
it(`should confirm the service was removed`, async () => {});
|
|
});
|
|
});
|