mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Merge pull request #9815 from mkllnk/bulk-product-spec
Stabilise spec by waiting for JS
This commit is contained in:
@@ -527,13 +527,14 @@ describe '
|
||||
s2 = create(:supplier_enterprise)
|
||||
p1 = FactoryBot.create(:simple_product, name: "product1", supplier: s1)
|
||||
p2 = FactoryBot.create(:simple_product, name: "product2", supplier: s2)
|
||||
login_as_admin
|
||||
|
||||
visit spree.admin_products_path
|
||||
login_as_admin_and_visit spree.admin_products_path
|
||||
|
||||
select2_select s1.name, from: "producer_filter"
|
||||
apply_filters
|
||||
|
||||
sleep 2 # wait for page to initialise
|
||||
|
||||
expect(page).to have_no_field "product_name", with: p2.name
|
||||
fill_in "product_name", with: "new product1"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user