58 lines
4.1 KiB
JavaScript
58 lines
4.1 KiB
JavaScript
|
describe.skip('Ticket Edit sale path', () => {
|
||
|
beforeEach(() => {
|
||
|
const ticketId = 1;
|
||
|
cy.viewport(1280, 720);
|
||
|
cy.login('developer');
|
||
|
cy.visit(`/#/ticket/${ticketId}/boxing`);
|
||
|
});
|
||
|
it(`should click on the first sale claim icon to navigate over there`, async () => {});
|
||
|
it('should navigate to the tickets index', async () => {});
|
||
|
it(`should search for a ticket and then navigate to it's sales`, async () => {});
|
||
|
it(`should set the ticket as libre`, async () => {});
|
||
|
it(`should check it's state is libre now`, async () => {});
|
||
|
it(`should set the ticket as OK`, async () => {});
|
||
|
it(`should check it's state is OK now`, async () => {});
|
||
|
it(`should check the zoomed image isn't present`, async () => {});
|
||
|
it(`should click on the thumbnail image of the 1st sale and see the zoomed image`, async () => {});
|
||
|
it(`should click on the zoomed image to close it`, async () => {});
|
||
|
it(`should click on the first sale ID making now the item descriptor visible`, async () => {});
|
||
|
it(`should click on the descriptor image of the 1st sale and see the zoomed image`, async () => {});
|
||
|
it(`should now click on the zoomed image to close it`, async () => {});
|
||
|
it(`should click on the summary icon of the item-descriptor to access to the item summary`, async () => {});
|
||
|
it('should return to ticket sales section', async () => {});
|
||
|
it('should remove 1 from the first sale quantity', async () => {});
|
||
|
it('should update the price', async () => {});
|
||
|
it('should confirm the price have been updated', async () => {});
|
||
|
it('should confirm the total price for that item have been updated', async () => {});
|
||
|
it('should update the discount', async () => {});
|
||
|
it('should confirm the discount have been updated', async () => {});
|
||
|
it('should confirm the total import for that item have been updated', async () => {});
|
||
|
it('should recalculate price of sales', async () => {});
|
||
|
it('should log in as salesAssistant and navigate to ticket sales', async () => {});
|
||
|
it('should select the first sale and create a refund with warehouse', async () => {});
|
||
|
it('should select the first sale and create a refund without warehouse', async () => {});
|
||
|
it('should show error trying to delete a ticket with a refund', async () => {});
|
||
|
it('should select the third sale and create a claim of it', async () => {});
|
||
|
it('should search for a ticket then access to the sales section', async () => {});
|
||
|
it('should select the third sale and delete it', async () => {});
|
||
|
it(`should confirm the third sale was deleted`, async () => {});
|
||
|
it('should select the second sale and transfer it to a valid ticket', async () => {});
|
||
|
it('should confirm the transfered line is the correct one', async () => {});
|
||
|
it('should confirm the transfered quantity is the correct one', async () => {});
|
||
|
it('should go back to the original ticket sales section', async () => {});
|
||
|
it(`should confirm the original ticket has still three lines`, async () => {});
|
||
|
it(`should confirm the second sale quantity is now half of it's original value after the transfer`, async () => {});
|
||
|
it('should go back to the receiver ticket sales section', async () => {});
|
||
|
it('should transfer the sale back to the original ticket', async () => {});
|
||
|
it('should confirm the original ticket received the line', async () => {});
|
||
|
it(`should throw an error when attempting to create a ticket for an inactive client`, async () => {});
|
||
|
it('should go now to the ticket sales section of an active, not frozen client', async () => {});
|
||
|
it(`should select all sales, tranfer them to a new ticket and delete the sender ticket as it would've been left empty`, async () => {});
|
||
|
it('should confirm the new ticket received the line', async () => {});
|
||
|
it('should check the first sale reserved icon isnt visible', async () => {});
|
||
|
it('should mark the first sale as reserved', async () => {});
|
||
|
it('should unmark the first sale as reserved', async () => {});
|
||
|
it('should log in as Production role and go to a target ticket summary', async () => {});
|
||
|
it(`should check the ticket is deleted`, async () => {});
|
||
|
});
|