Remove ineffective test

It would pass even if locales were broken.
This commit is contained in:
Maikel Linke
2026-03-18 13:05:23 +11:00
parent 4b5fd2495f
commit 9513c07c2f
2 changed files with 0 additions and 11 deletions

View File

@@ -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

View File

@@ -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