Renames product so it always appears first on the report results

This commit is contained in:
filipefurtad0
2023-09-13 11:33:58 +01:00
parent ead4f784ba
commit 263b5e280e

View File

@@ -67,7 +67,8 @@ describe Reporting::Reports::OrdersAndFulfillment::OrderCycleSupplierTotals do
it "is summarised" do
expect(report).to receive(:display_summary_row?).and_return(true)
# assures product appears first on report table
variant.product.update!(name: "Alpha-Product #000")
variant.product.update!(variant_unit: "weight")
variant.update!(unit_value: 200) # grams
item.update!(final_weight_volume: nil) # reset unit information