Merge pull request #9815 from mkllnk/bulk-product-spec

Stabilise spec by waiting for JS
This commit is contained in:
jibees
2022-10-19 09:50:55 +02:00
committed by GitHub

View File

@@ -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"