Files
MatchLiveTv/backend/spec/requests/public/i18n_pages_spec.rb
eminuxandCursor b88f44ab1c Completa i18n IT/EN/FR/DE/ES su sito pubblico, area autenticata e admin.
Tutte le view marketing, legali, viewer, dashboard e admin usano t(); mailer utente-facing e flash localizzati; admin con LocaleResolver e selettore lingua.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-24 00:38:50 +02:00

27 lines
885 B
Ruby

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