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>
27 lines
885 B
Ruby
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
|