From 9513c07c2f6634f706da755221027ebffe752b8b Mon Sep 17 00:00:00 2001 From: Maikel Linke Date: Wed, 18 Mar 2026 13:05:23 +1100 Subject: [PATCH] Remove ineffective test It would pass even if locales were broken. --- spec/support/request/web_helper.rb | 4 ---- spec/system/consumer/multilingual_spec.rb | 7 ------- 2 files changed, 11 deletions(-) diff --git a/spec/support/request/web_helper.rb b/spec/support/request/web_helper.rb index 3e4bb3a632..39a370d146 100644 --- a/spec/support/request/web_helper.rb +++ b/spec/support/request/web_helper.rb @@ -27,10 +27,6 @@ module WebHelper yield end - def set_i18n_locale(locale = 'en') - page.execute_script("I18n.locale = '#{locale}'") - end - def pick_i18n_locale page.evaluate_script("I18n.locale;") end diff --git a/spec/system/consumer/multilingual_spec.rb b/spec/system/consumer/multilingual_spec.rb index 2d5df6446b..cabeb405c7 100644 --- a/spec/system/consumer/multilingual_spec.rb +++ b/spec/system/consumer/multilingual_spec.rb @@ -15,13 +15,6 @@ RSpec.describe 'Multilingual' do expect(Rails.application.config.i18n[:available_locales]).to eq ['en', 'es', 'pt'] end - it '18n-js fallsback to default language' do - # in backend it doesn't until we change enforce_available_locales to `true` - visit root_path - set_i18n_locale('it') - expect(get_i18n_translation('label_shops')).to eq 'Shops' - end - context 'can switch language by params' do it 'in root path' do visit root_path