From 18d91d166e8633dcc025566243bfab631e7882a2 Mon Sep 17 00:00:00 2001 From: David Cook Date: Wed, 10 Apr 2024 15:36:45 +1000 Subject: [PATCH] Remove temporary spec It's likely to change frequently when there are global changes to the admin screen. It would be better to test more directly, but I don't think worth it while everythings moving around so much. --- spec/system/admin/products_v3/products_spec.rb | 9 --------- 1 file changed, 9 deletions(-) diff --git a/spec/system/admin/products_v3/products_spec.rb b/spec/system/admin/products_v3/products_spec.rb index ec588ec7d7..74dcc2d051 100644 --- a/spec/system/admin/products_v3/products_spec.rb +++ b/spec/system/admin/products_v3/products_spec.rb @@ -16,15 +16,6 @@ describe 'As an admin, I can manage products', feature: :admin_style_v3 do expect(page).to have_content "Bulk Edit Products" end - # TODO: this belongs in a unit or request spec - it "minimises db queries" do - create_products 16 - - expect{ - visit admin_products_url - }.to query_database 243.times # Remember this includes user session updates etc. - end - describe "sorting" do let!(:product_b) { create(:simple_product, name: "Bananas") } let!(:product_a) { create(:simple_product, name: "Apples") }