diff --git a/e2e/paths/05-ticket-module/04_create_ticket_packages.spec.js b/e2e/paths/05-ticket-module/04_create_ticket_packages.spec.js
index ac6c4b4f6..3c2f0b123 100644
--- a/e2e/paths/05-ticket-module/04_create_ticket_packages.spec.js
+++ b/e2e/paths/05-ticket-module/04_create_ticket_packages.spec.js
@@ -41,21 +41,10 @@ describe('Ticket Create packages path', () => {
expect(result).toBeTruthy();
});
- it(`should attempt create a new package but receive an error if the quantity is invalid`, async() => {
- const result = await nightmare
- .write(selectors.ticketPackages.firstQuantityInput, -99)
- .waitToClick(selectors.ticketPackages.savePackagesButton)
- .evaluate(selector => {
- return document.querySelector(selector).checkValidity();
- }, selectors.ticketPackages.firstQuantityInput);
-
- expect(result).toBeFalsy();
- });
-
it(`should create a new package with correct data`, async() => {
const result = await nightmare
.clearInput(selectors.ticketPackages.firstQuantityInput)
- .write(selectors.ticketPackages.firstQuantityInput, 99)
+ .write(selectors.ticketPackages.firstQuantityInput, -99)
.waitToClick(selectors.ticketPackages.savePackagesButton)
.waitForLastSnackbar();
@@ -73,9 +62,9 @@ describe('Ticket Create packages path', () => {
it(`should confirm the first quantity is just a number and the string part was ignored by the imput number`, 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}}
-