From 91c4ba03cd874ae365169edec533c3cfca0af377 Mon Sep 17 00:00:00 2001 From: Maikel Linke Date: Wed, 18 Mar 2026 13:15:35 +1100 Subject: [PATCH] Remove more expensive specs --- spec/system/consumer/multilingual_spec.rb | 51 ----------------------- 1 file changed, 51 deletions(-) diff --git a/spec/system/consumer/multilingual_spec.rb b/spec/system/consumer/multilingual_spec.rb index 279ad31739..a286977793 100644 --- a/spec/system/consumer/multilingual_spec.rb +++ b/spec/system/consumer/multilingual_spec.rb @@ -61,57 +61,6 @@ RSpec.describe 'Multilingual' do expect_menu_and_cookie_in_es expect(page).to have_content '¿Estás interesada en entrar en Open Food Network?' end - - context "visiting checkout as logged user" do - let!(:zone) { create(:zone_with_member) } - let(:supplier) { create(:supplier_enterprise) } - let(:distributor) { create(:distributor_enterprise, charges_sales_tax: true) } - let(:product) { - create(:taxed_product, supplier_id: supplier.id, price: 10, zone:) - } - let(:variant) { product.variants.first } - let!(:order_cycle) { - create(:simple_order_cycle, suppliers: [supplier], distributors: [distributor], - coordinator: create(:distributor_enterprise), - variants: [variant]) - } - - let(:free_shipping) { - create(:shipping_method, require_ship_address: false) - } - let!(:payment) { - create(:payment_method, distributors: [distributor], - name: "Payment") - } - let(:order) { - create(:order_ready_for_confirmation, distributor:) - } - before do - pick_order order - login_as user - end - - it "on the details step" do - visit checkout_step_path(:details, locale: 'es') - - expect_menu_and_cookie_in_es - expect(page).to have_content "Sus detalles" - end - - it "on the payment step" do - visit checkout_step_path(:payment, locale: 'es') - - expect_menu_and_cookie_in_es - expect(page).to have_content "Puede revisar y confirmar su pedido" - end - - it "on the summary step" do - visit checkout_step_path(:summary, locale: 'es') - - expect_menu_and_cookie_in_es - expect(page).to have_content "Detalles de entrega" - end - end end describe "using the language switcher UI" do