mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Exclude customer personal information from order summary in email
This commit is contained in:
committed by
Rachel Arnould
parent
5a13aa1c8a
commit
80fc0a5790
@@ -237,6 +237,12 @@ RSpec.describe ProducerMailer do
|
||||
expect(table).not_to have_selector("th", text: "Last Name")
|
||||
expect(table).not_to have_selector("th", text: "Phone")
|
||||
expect(table).not_to have_selector("th", text: "Email")
|
||||
|
||||
row = parsed_email.find("table.order-summary.customer-order tbody tr")
|
||||
expect(row).not_to have_selector("td", text: order.billing_address.phone)
|
||||
expect(row).not_to have_selector("td", text: order.customer.email)
|
||||
expect(row).not_to have_selector("td", text: order.billing_address.lastname)
|
||||
expect(row).not_to have_selector("td", text: order.billing_address.firstname)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user