mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
refactor(spec/system/admin/subscriptions_spec.rb): issue #7483
Add context when using copy button to fill in ship address.
This commit is contained in:
@@ -308,13 +308,16 @@ describe 'Subscriptions' do
|
||||
select2_select "Victoria", from: "bill_address_state_id"
|
||||
end
|
||||
|
||||
it 'has input with ship address values' do
|
||||
# Use copy button to fill in ship address
|
||||
click_link "Copy"
|
||||
expect(page).to have_input "ship_address_firstname", with: 'Freda'
|
||||
expect(page).to have_input "ship_address_lastname", with: 'Figapple'
|
||||
expect(page).to have_input "ship_address_address1", with: '7 Tempany Lane'
|
||||
context 'and using copy button to fill in ship address' do
|
||||
before { click_link "Copy" }
|
||||
|
||||
it 'has input with ship address values' do
|
||||
expect(page).to have_input "ship_address_firstname", with: 'Freda'
|
||||
expect(page).to have_input "ship_address_lastname", with: 'Figapple'
|
||||
expect(page).to have_input "ship_address_address1", with: '7 Tempany Lane'
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user