mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Fix check for locale cookie
For some reason the app set an `_ofn_session_id cookie`, which broke the assertion expecting no cookie.
This commit is contained in:
@@ -27,7 +27,7 @@ describe 'Multilingual' do
|
||||
visit root_path
|
||||
expect(get_i18n_locale).to eq 'en'
|
||||
expect(get_i18n_translation('label_shops')).to eq 'Shops'
|
||||
expect(cookies).to be_empty
|
||||
expect(cookies_name).not_to include('locale')
|
||||
expect(page).to have_content 'SHOPS'
|
||||
|
||||
visit root_path(locale: 'es')
|
||||
|
||||
Reference in New Issue
Block a user