From d7c9bb2e5afb7f39274343e69ad9cc504c9fa296 Mon Sep 17 00:00:00 2001 From: Maikel Linke Date: Thu, 25 Jun 2020 16:36:39 +1000 Subject: [PATCH] Navigate more efficiently in spec The spec is not supposed to test the navigation to the shop. Going directly to the shop reduces the test execution time by 7%. --- spec/features/consumer/shopping/variant_overrides_spec.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spec/features/consumer/shopping/variant_overrides_spec.rb b/spec/features/consumer/shopping/variant_overrides_spec.rb index eec53d5871..9c7ca0a5d1 100644 --- a/spec/features/consumer/shopping/variant_overrides_spec.rb +++ b/spec/features/consumer/shopping/variant_overrides_spec.rb @@ -37,8 +37,7 @@ feature "shopping with variant overrides defined", js: true do outgoing_exchange.variants = [product1_variant1, product1_variant2, product2_variant1, product1_variant3, product3_variant1, product3_variant2, product4_variant1] outgoing_exchange.enterprise_fees << enterprise_fee sm.calculator.preferred_amount = 0 - visit shops_path - click_link hub.name + visit enterprise_shop_path(hub) end describe "viewing products" do