From e212a42b1601f755742230a33f1ca0cf913bd11c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francisco=20Bol=C3=ADvar?= Date: Tue, 19 Mar 2024 12:50:23 +0100 Subject: [PATCH] Fix system specs --- decidim-valid_auth/config/locales/ca.yml | 2 +- spec/system/census16_authorization_spec.rb | 4 ++-- spec/system/census_authorization_spec.rb | 4 ++-- spec/system/census_kids_authorization_spec.rb | 4 ++-- spec/system/initiatives_spec.rb | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/decidim-valid_auth/config/locales/ca.yml b/decidim-valid_auth/config/locales/ca.yml index ee4128f9de..83749b78fa 100644 --- a/decidim-valid_auth/config/locales/ca.yml +++ b/decidim-valid_auth/config/locales/ca.yml @@ -8,4 +8,4 @@ ca: authorizations: create: error: S'ha produït un error en crear l'autorització - success: Has estat autoritzat amb èxit \ No newline at end of file + success: Se t'ha autoritzat correctament diff --git a/spec/system/census16_authorization_spec.rb b/spec/system/census16_authorization_spec.rb index a8bc90357f..c2e44a5b6b 100644 --- a/spec/system/census16_authorization_spec.rb +++ b/spec/system/census16_authorization_spec.rb @@ -57,7 +57,7 @@ def fill_in_authorization_form fill_in_authorization_form click_on "Enviar" - expect(page).to have_content("Has estat autoritzada") + expect(page).to have_content("Se t'ha autoritzat correctament") visit decidim_verifications.authorizations_path @@ -79,7 +79,7 @@ def fill_in_authorization_form within ".authorizations-list" do expect(page).to have_content("El padró (majors de 16 anys)") - expect(page).to have_content(I18n.l(authorization.granted_at, format: :long, locale: :ca)) + expect(page).to have_content(I18n.l(authorization.granted_at, format: :long_with_particles, locale: :ca)) end end end diff --git a/spec/system/census_authorization_spec.rb b/spec/system/census_authorization_spec.rb index a757f09289..0c7ccfbf15 100644 --- a/spec/system/census_authorization_spec.rb +++ b/spec/system/census_authorization_spec.rb @@ -57,7 +57,7 @@ def fill_in_authorization_form fill_in_authorization_form click_on "Enviar" - expect(page).to have_content("Has estat autoritzada") + expect(page).to have_content("Se t'ha autoritzat correctament") visit decidim_verifications.authorizations_path @@ -79,7 +79,7 @@ def fill_in_authorization_form within ".authorizations-list" do expect(page).to have_content("El padró") - expect(page).to have_content(I18n.l(authorization.granted_at, format: :long, locale: :ca)) + expect(page).to have_content(I18n.l(authorization.granted_at, format: :long_with_particles, locale: :ca)) end end end diff --git a/spec/system/census_kids_authorization_spec.rb b/spec/system/census_kids_authorization_spec.rb index fb2fce181f..dd713f0f99 100644 --- a/spec/system/census_kids_authorization_spec.rb +++ b/spec/system/census_kids_authorization_spec.rb @@ -57,7 +57,7 @@ def fill_in_authorization_form fill_in_authorization_form click_on "Enviar" - expect(page).to have_content("Has estat autoritzada") + expect(page).to have_content("Se t'ha autoritzat correctament") visit decidim_verifications.authorizations_path @@ -79,7 +79,7 @@ def fill_in_authorization_form within ".authorizations-list" do expect(page).to have_content("El padró (majors de 8 anys)") - expect(page).to have_content(I18n.l(authorization.granted_at, format: :long, locale: :ca)) + expect(page).to have_content(I18n.l(authorization.granted_at, format: :long_with_particles, locale: :ca)) end end end diff --git a/spec/system/initiatives_spec.rb b/spec/system/initiatives_spec.rb index 53cc278716..d781081615 100644 --- a/spec/system/initiatives_spec.rb +++ b/spec/system/initiatives_spec.rb @@ -46,7 +46,7 @@ it "cannot create a new initiative" do click_on "Nova iniciativa" - expect(page).to have_content("Si us plau, inicia sessió") + expect(page).to have_content("Si us plau, inicia la sessió") end end end