mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
adds additional test case, in which a negative payment is added to an order
This commit is contained in:
@@ -136,6 +136,19 @@ feature 'Customers' do
|
||||
expect(page).to have_content "$0.00"
|
||||
end
|
||||
end
|
||||
|
||||
# this adds the additional payments to an order, and checks for customer balance
|
||||
it "updates customer balance with additional negative payments, on an order" do
|
||||
|
||||
payment2
|
||||
|
||||
select2_select managed_distributor1.name, from: "shop_id"
|
||||
|
||||
within "tr#c_#{customer1.id}" do
|
||||
expect(page).to have_content "CREDIT OWED"
|
||||
expect(page).to have_content "$63.00"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
it "allows updating of attributes" do
|
||||
|
||||
Reference in New Issue
Block a user