From f4ea71eb3c233fc9d674821f7b95d1096ef5b350 Mon Sep 17 00:00:00 2001 From: Gaetan Craig-Riou Date: Wed, 24 Jan 2024 10:04:49 +1100 Subject: [PATCH] Fix check for locale cookie For some reason the app set an `_ofn_session_id cookie`, which broke the assertion expecting no cookie. --- spec/system/consumer/multilingual_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/system/consumer/multilingual_spec.rb b/spec/system/consumer/multilingual_spec.rb index 87886017ca..1020d81601 100644 --- a/spec/system/consumer/multilingual_spec.rb +++ b/spec/system/consumer/multilingual_spec.rb @@ -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')