Skip to content
This repository has been archived by the owner on Mar 31, 2021. It is now read-only.

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBestPessimist committed Jul 29, 2019
1 parent 93ef421 commit 1ef07cd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cypress/integration/a/reverse_empties_return.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,10 @@ function addLines(productNames, productQuantity) {
cy.writeIntoLookupListField('M_HU_PackingMaterial_ID', productName, productName);

if (productQuantity > 0) {
cy.writeIntoStringField('Qty', productQuantity + index, false, null, true); //.type('{enter}');
cy.writeIntoStringField('Qty', productQuantity + index); //.type('{enter}');
cy.closeBatchEntry();
} else {
cy.writeIntoStringField('Qty', -1 * productQuantity, false, null, true); //.type('{enter}'); // first write the positive qty (frontend bug workaround)
cy.writeIntoStringField('Qty', -1 * productQuantity); //.type('{enter}'); // first write the positive qty (frontend bug workaround)
writeQtyInAdvancedEdit(productQuantity + index, productName, index);
}
});
Expand All @@ -187,7 +187,7 @@ function writeQtyInAdvancedEdit(productQuantity, rowNumber) {

// do ya thing
cy.openAdvancedEdit();
cy.writeIntoStringField('MovementQty', productQuantity, true, null, true);
cy.writeIntoStringField('QtyEntered', productQuantity, true, null, true);
cy.writeIntoStringField('MovementQty', productQuantity);
cy.writeIntoStringField('QtyEntered', productQuantity);
cy.pressDoneButton(100);
}

0 comments on commit 1ef07cd

Please sign in to comment.