mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-13 23:37:47 +00:00
Merge pull request #13300 from filipefurtad0/fix_flaky_simple_spec_again
Adds tests to toggle the css sections (distributed products)
This commit is contained in:
@@ -555,6 +555,14 @@ RSpec.describe '
|
||||
expect(page).to have_selector "tr.distributor-#{distributor_permitted.id}"
|
||||
expect(page).to have_selector 'tr.distributor', count: 2
|
||||
|
||||
# Toggling all products displays the css section of the distributed products
|
||||
click_link "Expand all"
|
||||
expect(page).to have_css ".exchange-distributed-products", count: 2
|
||||
|
||||
# Colapsing all products hides the css section of the distributed products
|
||||
click_link "Collapse all"
|
||||
expect(page).not_to have_css ".exchange-distributed-products"
|
||||
|
||||
# Open the products list for managed_supplier's incoming exchange
|
||||
within "tr.distributor-#{distributor_managed.id}" do
|
||||
page.find("td.products").click
|
||||
|
||||
Reference in New Issue
Block a user