diff --git a/e2e/paths/ticket-module/04_create_ticket_packages.spec.js b/e2e/paths/ticket-module/04_create_ticket_packages.spec.js index 6576893a9..2578388de 100644 --- a/e2e/paths/ticket-module/04_create_ticket_packages.spec.js +++ b/e2e/paths/ticket-module/04_create_ticket_packages.spec.js @@ -41,20 +41,10 @@ describe('Ticket Create packages path', () => { expect(result).toEqual('Some fields are invalid'); }); - it(`should attempt create a new package but receive an error if package is blank`, async() => { - const result = await nightmare - .clearInput(selectors.ticketPackages.firstQuantityInput) - .write(selectors.ticketPackages.firstQuantityInput, 99) - .waitToClick(selectors.ticketPackages.clearPackageAutocompleteButton) - .waitToClick(selectors.ticketPackages.savePackagesButton) - .waitForLastSnackbar(); - - expect(result).toEqual('Package cannot be blank'); - }); - it(`should create a new package with correct data`, async() => { const result = await nightmare - .autocompleteSearch(selectors.ticketPackages.firstPackageAutocomplete, 'Legendary Box') + .clearInput(selectors.ticketPackages.firstQuantityInput) + .write(selectors.ticketPackages.firstQuantityInput, -99) .waitToClick(selectors.ticketPackages.savePackagesButton) .waitForLastSnackbar(); @@ -72,9 +62,9 @@ describe('Ticket Create packages path', () => { it(`should confirm the first quantity is the expected one`, async() => { const result = await nightmare - .waitForTextInInput(selectors.ticketPackages.firstQuantityInput, '99') + .waitForTextInInput(selectors.ticketPackages.firstQuantityInput, '-99') .waitToGetProperty(selectors.ticketPackages.firstQuantityInput, 'value'); - expect(result).toEqual('99'); + expect(result).toEqual('-99'); }); }); diff --git a/modules/ticket/front/package/index.html b/modules/ticket/front/package/index.html index 5fbfffcf5..7478bac5d 100644 --- a/modules/ticket/front/package/index.html +++ b/modules/ticket/front/package/index.html @@ -25,7 +25,7 @@ field="package.packagingFk"> {{itemFk}} : {{name}} -