mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Fixing race condition on link click in spec/features/consumer/shops_spec.rb
This commit is contained in:
@@ -125,7 +125,7 @@ feature 'Shops', js: true do
|
||||
describe "closed shops" do
|
||||
it "shows taxons for any order cycle" do
|
||||
visit shops_path
|
||||
click_link 'Show Closed Shops'
|
||||
click_link_and_ensure('Show Closed Shops', -> { page.has_selector? '.active_table_node'})
|
||||
expand_active_table_node shop.name
|
||||
expect(page).to have_selector '.fat-taxons', text: 'Closed'
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user