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 24, 2019
1 parent d7458df commit dc66e66
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cypress/support/utils/purchase_order.js
Original file line number Diff line number Diff line change
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 dc66e66

Please sign in to comment.