mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
TEMP: spit out variables in failing oc spec
This commit is contained in:
@@ -131,6 +131,20 @@ feature %q{
|
||||
|
||||
expect(page).to have_content 'ADD PRODUCT'
|
||||
targetted_select2_search product.name, from: '#add_variant_id', dropdown_css: '.select2-drop'
|
||||
|
||||
puts "c1: " + coordinator1.id.to_s + " "+ coordinator1.name
|
||||
puts "c2: " + coordinator2.id.to_s + " "+ coordinator2.name
|
||||
puts "s1: " + supplier1.id.to_s + " "+ supplier1.name
|
||||
puts "s2: " + supplier2.id.to_s + " "+ supplier2.name
|
||||
puts "d1: " + distributor1.id.to_s + " "+ distributor1.name
|
||||
puts "d2: " + distributor2.id.to_s + " "+ distributor2.name
|
||||
order_cycle1.distributors.each do |distributor|
|
||||
puts "oc1d: " + distributor.id.to_s + " "+ distributor.name
|
||||
end
|
||||
Enterprise.is_distributor.managed_by(@enterprise_user).each do |distributor|
|
||||
puts "eud: " + distributor.id.to_s + " "+ distributor.name
|
||||
end
|
||||
|
||||
click_link 'Add'
|
||||
page.has_selector? "table.index tbody[data-hook='admin_order_form_line_items'] tr" # Wait for JS
|
||||
expect(page).to have_selector 'td', text: product.name
|
||||
|
||||
Reference in New Issue
Block a user