From fd178ee80b700705806f0a3313b808d719dfe6a9 Mon Sep 17 00:00:00 2001 From: Maikel Linke Date: Thu, 26 Feb 2026 10:45:20 +1100 Subject: [PATCH] Use unique categories to avoid flakiness --- spec/system/admin/products_v3/actions_spec.rb | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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