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:
Gaetan Craig-Riou
2024-01-24 10:04:49 +11:00
parent 0d474f6e29
commit f4ea71eb3c

View File

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