This commit is contained in:
parent
3ecfbe2052
commit
527116f1ec
|
@ -596,6 +596,7 @@ export default {
|
|||
moreMenuRecalculatePrice: 'vn-item[name="calculatePrice"]',
|
||||
moreMenuRefund: 'vn-item[name="refund"]',
|
||||
refundWithWarehouse: 'vn-item[name="refundWithWarehouse"]',
|
||||
refundWithoutWarehouse: 'vn-item[name="refundWithoutWarehouse"]',
|
||||
moreMenuUpdateDiscountInput: 'vn-input-number[ng-model="$ctrl.edit.discount"] input',
|
||||
transferQuantityInput: '.vn-popover.shown vn-table > div > vn-tbody > vn-tr > vn-td-editable > span > text',
|
||||
transferQuantityCell: '.vn-popover.shown vn-table > div > vn-tbody > vn-tr > vn-td-editable',
|
||||
|
|
|
@ -220,7 +220,7 @@ describe('Ticket Edit sale path', () => {
|
|||
|
||||
it('should log in as salesAssistant and navigate to ticket sales', async() => {
|
||||
await page.loginAndModule('salesAssistant', 'ticket');
|
||||
await page.accessToSearchResult('16');
|
||||
await page.accessToSearchResult('17');
|
||||
await page.accessToSection('ticket.card.sale');
|
||||
});
|
||||
|
||||
|
@ -233,15 +233,15 @@ describe('Ticket Edit sale path', () => {
|
|||
await page.waitForState('ticket.card.sale');
|
||||
});
|
||||
|
||||
// it('should select the first sale and create a refund without warehouse', async() => {
|
||||
// await page.accessToSearchResult('15');
|
||||
// await page.waitToClick(selectors.ticketSales.firstSaleCheckbox);
|
||||
// await page.waitToClick(selectors.ticketSales.moreMenu);
|
||||
// await page.waitToClick(selectors.ticketSales.moreMenuRefund);
|
||||
// await page.waitToClick(selectors.ticketSales.refundWithoutWarehouse);
|
||||
// await page.waitForSnackbar();
|
||||
// await page.waitForState('ticket.card.sale');
|
||||
// });
|
||||
it('should select the first sale and create a refund without warehouse', async() => {
|
||||
await page.accessToSearchResult('18');
|
||||
await page.waitToClick(selectors.ticketSales.firstSaleCheckbox);
|
||||
await page.waitToClick(selectors.ticketSales.moreMenu);
|
||||
await page.waitToClick(selectors.ticketSales.moreMenuRefund);
|
||||
await page.waitToClick(selectors.ticketSales.refundWithoutWarehouse);
|
||||
await page.waitForSnackbar();
|
||||
await page.waitForState('ticket.card.sale');
|
||||
});
|
||||
|
||||
it('should show error trying to delete a ticket with a refund', async() => {
|
||||
await page.accessToSearchResult('16');
|
||||
|
@ -257,7 +257,6 @@ describe('Ticket Edit sale path', () => {
|
|||
it('should select the third sale and create a claim of it', async() => {
|
||||
await page.accessToSearchResult('16');
|
||||
await page.accessToSection('ticket.card.sale');
|
||||
await page.waitToClick(selectors.ticketSales.firstSaleCheckbox);
|
||||
await page.waitToClick(selectors.ticketSales.thirdSaleCheckbox);
|
||||
await page.waitToClick(selectors.ticketSales.moreMenu);
|
||||
await page.waitToClick(selectors.ticketSales.moreMenuCreateClaim);
|
||||
|
|
Loading…
Reference in New Issue