mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-28 01:53:25 +00:00
Make Leave Distributor link more intuitive
This commit is contained in:
@@ -15,5 +15,5 @@
|
||||
= link_to distributor.name, root_path
|
||||
- else
|
||||
%span.inactive= distributor.name
|
||||
- if current_distributor && order.can_change_distributor?
|
||||
%li.nowrap= link_to 'Leave distributor', deselect_distributors_path
|
||||
- if current_distributor && order.can_change_distributor?
|
||||
= button_to 'Browse All Distributors', deselect_distributors_path, :method => :get
|
||||
|
||||
@@ -71,7 +71,7 @@ feature %q{
|
||||
# When I select the distributor and then leave it
|
||||
visit spree.root_path
|
||||
click_link d.name
|
||||
click_link 'Leave distributor'
|
||||
click_button 'Browse All Distributors'
|
||||
|
||||
# Then I should have left the distributor
|
||||
page.should_not have_selector '#current-distributor', :text => 'You are shopping at Melb Uni Co-op'
|
||||
|
||||
Reference in New Issue
Block a user