mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-27 06:05:19 +00:00
Make sure shipping modal gets closed
Also check the modal is not showing instead of checking it's hidden
This commit is contained in:
@@ -555,7 +555,7 @@ RSpec.describe '
|
||||
find_button("Confirm").click
|
||||
end
|
||||
|
||||
expect(page).to have_selector('.reveal-modal', visible: false)
|
||||
expect(page).not_to have_content("This will mark the order as Shipped.")
|
||||
expect(page).to have_content "SHIPPED"
|
||||
click_link('Order Details') unless subpage == 'Order Details'
|
||||
|
||||
@@ -578,7 +578,7 @@ RSpec.describe '
|
||||
find_button("Confirm").click
|
||||
end
|
||||
|
||||
expect(page).to have_selector('.reveal-modal', visible: false)
|
||||
expect(page).not_to have_content("This will mark the order as Shipped.")
|
||||
click_link('Order Details') unless subpage == 'Order Details'
|
||||
|
||||
expect(page).to have_content "SHIPPED"
|
||||
|
||||
Reference in New Issue
Block a user