require "rails_helper" RSpec.describe "Public i18n pages", type: :request do it "mostra privacy in inglese con cookie mltv_locale" do cookies[:mltv_locale] = "en" get public_privacy_path expect(response).to have_http_status(:ok) expect(response.body).to include("Notice on the processing of personal data") expect(response.body).not_to include("Informativa sul trattamento") end it "mostra login in francese" do cookies[:mltv_locale] = "fr" get public_login_path expect(response).to have_http_status(:ok) expect(response.body).to include("Connexion") expect(response.body).not_to include("translation missing") end it "mostra features in tedesco" do cookies[:mltv_locale] = "de" get public_features_path expect(response).to have_http_status(:ok) expect(response.body).not_to include("translation missing") end end