mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-20 04:59:16 +00:00
Remove ineffective test
It would pass even if locales were broken.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user