mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-30 21:27:17 +00:00
Applies helper changes
This commit is contained in:
committed by
David Cook
parent
0a4c2a1903
commit
4e24af2f94
@@ -705,10 +705,10 @@ RSpec.describe '
|
||||
|
||||
toggle_columns /^.{0,1}Producer$/i
|
||||
|
||||
expect(page).to have_no_selector "th", text: "Producer"
|
||||
expect(page).to have_selector "th", text: "Name"
|
||||
expect(page).to have_selector "th", text: "Price"
|
||||
expect(page).to have_selector "th", text: "On Hand"
|
||||
expect(page).not_to have_selector "th", text: "Producer"
|
||||
expect(page).to have_selector "th", text: "NAME"
|
||||
expect(page).to have_selector "th", text: "PRICE"
|
||||
expect(page).to have_selector "th", text: "ON HAND"
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -72,7 +72,7 @@ RSpec.describe '
|
||||
end
|
||||
|
||||
# I can load more order_cycles
|
||||
expect(page).to have_no_selector "#listing_order_cycles tr.order-cycle-#{oc7.id}"
|
||||
expect(page).not_to have_selector "#listing_order_cycles tr.order-cycle-#{oc7.id}"
|
||||
trigger_click(:button, "Show 30 more days")
|
||||
|
||||
expect(page).to have_selector "#listing_order_cycles tr.order-cycle-#{oc7.id}"
|
||||
|
||||
@@ -125,7 +125,8 @@ RSpec.describe '
|
||||
it "sets the customer on the order" do
|
||||
expect(order.customer_id).to be_nil
|
||||
|
||||
tomselect_search_and_select customer2.email, from: 'select-customer'
|
||||
tomselect_search_and_select customer2.email, from: 'customer_search_override'
|
||||
|
||||
check 'order_use_billing'
|
||||
|
||||
trigger_click(:button, 'Update')
|
||||
@@ -148,7 +149,8 @@ RSpec.describe '
|
||||
|
||||
it "should update the order customer (not only its details)" do
|
||||
expect(page).to have_field 'order_email', with: customer2.email
|
||||
tomselect_search_and_select customer3.email, from: 'select-customer'
|
||||
tomselect_search_and_select customer3.email, from: 'customer_search_override'
|
||||
|
||||
check 'order_use_billing'
|
||||
|
||||
expect(page).to have_field 'order_email', with: customer3.email
|
||||
@@ -513,7 +515,7 @@ RSpec.describe '
|
||||
expect(page).to have_selector '#select-customer'
|
||||
|
||||
# And I select that customer's email address and save the order
|
||||
tomselect_search_and_select customer.email, from: 'select-customer'
|
||||
tomselect_search_and_select customer.email, from: 'customer_search_override'
|
||||
expect(page).to have_field "order_email", with: customer.email
|
||||
click_button 'Update'
|
||||
|
||||
|
||||
@@ -712,9 +712,9 @@ RSpec.describe "Product Import" do
|
||||
|
||||
expect(page).to have_selector '.created-count', text: '1'
|
||||
|
||||
expect(page).to have_no_selector '.updated-count'
|
||||
expect(page).to have_content "Go To Products Page"
|
||||
expect(page).to have_content "Upload Another File"
|
||||
expect(page).not_to have_selector '.updated-count'
|
||||
expect(page).to have_content "Go To Products Page".upcase
|
||||
expect(page).to have_content "Upload Another File".upcase
|
||||
|
||||
visit spree.admin_products_path
|
||||
|
||||
|
||||
Reference in New Issue
Block a user