Skip to content

Commit

Permalink
Fix system specs
Browse files Browse the repository at this point in the history
  • Loading branch information
fblupi committed Mar 19, 2024
1 parent 9e50eb2 commit e212a42
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion decidim-valid_auth/config/locales/ca.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ ca:
authorizations:
create:
error: S'ha produït un error en crear l'autorització
success: Has estat autoritzat amb èxit
success: Se t'ha autoritzat correctament
4 changes: 2 additions & 2 deletions spec/system/census16_authorization_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions spec/system/census_authorization_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions spec/system/census_kids_authorization_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion spec/system/initiatives_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit e212a42

Please sign in to comment.