mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Add column for variant description to BOM
This commit is contained in:
@@ -14,8 +14,10 @@
|
||||
%th.email Email
|
||||
%th.date Order Date
|
||||
%th.producer Producer
|
||||
%th.variant Product (Unit): Var
|
||||
%tr.line_item{ 'ng-repeat' => 'line_item in lineItems', 'ng-class-even' => "'even'", 'ng-class-odd' => "'odd'" }
|
||||
%td.id {{ line_item.id }}
|
||||
%td.email {{ line_item.order.email }}
|
||||
%td.date {{ line_item.order.completed_at }}
|
||||
%td.producer {{ line_item.supplier.name }}
|
||||
%td.producer {{ line_item.supplier.name }}
|
||||
%td.variant {{ line_item.variant_unit_text }}
|
||||
@@ -62,6 +62,12 @@ feature %q{
|
||||
page.should have_selector "td.producer", text: li1.product.supplier.name, :visible => true
|
||||
page.should have_selector "td.producer", text: li2.product.supplier.name, :visible => true
|
||||
end
|
||||
|
||||
it "displays a column for variant description" do
|
||||
page.should have_selector "th.variant", text: "PRODUCT (UNIT): VAR", :visible => true
|
||||
page.should have_selector "td.variant", text: li1.product.name, :visible => true
|
||||
page.should have_selector "td.variant", text: li2.product.name, :visible => true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user