diff --git a/spec/system/admin/products_v3/actions_spec.rb b/spec/system/admin/products_v3/actions_spec.rb index 22078d5567..383892ba86 100644 --- a/spec/system/admin/products_v3/actions_spec.rb +++ b/spec/system/admin/products_v3/actions_spec.rb @@ -167,7 +167,10 @@ RSpec.describe 'As an enterprise user, I can manage my products' do before do create_list(:supplier_enterprise, 11, users: [user]) create_list(:tax_category, 11) - create_list(:taxon, 11) + build_list(:taxon, 11).each_with_index do |taxon, i| + taxon.name += " #{i}" + taxon.save! + end visit admin_products_url end @@ -179,11 +182,7 @@ RSpec.describe 'As an enterprise user, I can manage my products' do within row_containing_name(variant_a1.display_name) do tomselect_search_and_select(producer_to_select, from: "Producer") - - sleep(0.2) tomselect_search_and_select(category_to_select, from: "Category") - - sleep(0.2) tomselect_search_and_select(tax_category_to_select, from: "Tax Category") end