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

Commit

Permalink
Bugfix for PurchaseOrder Class
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBestPessimist committed Jul 29, 2019
1 parent 5d06b1e commit cba3f87
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cypress/support/utils/purchase_order.js
Expand Up @@ -66,7 +66,9 @@ function applyPurchaseOrder(purchaseOrder) {
cy.writeIntoStringField('POReference', purchaseOrder.poReference);
}

cy.setCheckBoxValue('IsDropShip', purchaseOrder.isDropShip);
if (purchaseOrder.isDropShip) {
cy.setCheckBoxValue('IsDropShip', purchaseOrder.isDropShip);
}

purchaseOrder.lines.forEach(function(purchaseOrderLine) {
applyPurchaseOrderLine(purchaseOrderLine);
Expand Down

0 comments on commit cba3f87

Please sign in to comment.