mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-20 04:59:16 +00:00
Merge pull request #13961 from mkllnk/taler-checkout-stock-error
Taler checkout stock error
This commit is contained in:
@@ -10,17 +10,12 @@ RSpec.describe 'Multilingual' do
|
||||
|
||||
before do
|
||||
login_as admin_user
|
||||
visit spree.admin_dashboard_path
|
||||
end
|
||||
|
||||
it 'has three locales available' do
|
||||
expect(Rails.application.config.i18n[:default_locale]).to eq 'en'
|
||||
expect(Rails.application.config.i18n[:locale]).to eq 'en'
|
||||
expect(Rails.application.config.i18n[:available_locales]).to eq ['en', 'es', 'pt']
|
||||
end
|
||||
|
||||
it 'can switch language by params' do
|
||||
expect(pick_i18n_locale).to eq 'en'
|
||||
visit spree.admin_dashboard_path
|
||||
|
||||
expect(pick_i18n_locale).to eq 'en_TST'
|
||||
expect(get_i18n_translation('spree_admin_overview_enterprises_header')).to eq 'My Enterprises'
|
||||
expect(page).to have_content 'My Enterprises'
|
||||
expect(admin_user.locale).to be_nil
|
||||
@@ -36,9 +31,9 @@ RSpec.describe 'Multilingual' do
|
||||
|
||||
it 'fallbacks to default_locale' do
|
||||
visit spree.admin_dashboard_path(locale: 'it')
|
||||
expect(pick_i18n_locale).to eq 'en'
|
||||
expect(pick_i18n_locale).to eq 'en_TST'
|
||||
expect(get_i18n_translation('spree_admin_overview_enterprises_header')).to eq 'My Enterprises'
|
||||
expect(page).to have_content 'My Enterprises'
|
||||
expect(admin_user.locale).to be_nil
|
||||
expect(admin_user.reload.locale).to be_nil
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user