Merge pull request #2952 from consul/backport-update_custom_pages_translations
Update custom pages translations
This commit is contained in:
@@ -1350,11 +1350,11 @@ es:
|
|||||||
page:
|
page:
|
||||||
created_at: Creada
|
created_at: Creada
|
||||||
status: Estado
|
status: Estado
|
||||||
title: Título
|
|
||||||
updated_at: Última actualización
|
updated_at: Última actualización
|
||||||
status_draft: Borrador
|
status_draft: Borrador
|
||||||
status_published: Publicada
|
status_published: Publicada
|
||||||
locale: Idioma
|
title: Título
|
||||||
|
slug: Slug
|
||||||
homepage:
|
homepage:
|
||||||
title: Homepage
|
title: Homepage
|
||||||
description: Los módulos activos aparecerán en la homepage en el mismo orden que aquí.
|
description: Los módulos activos aparecerán en la homepage en el mismo orden que aquí.
|
||||||
|
|||||||
@@ -107,7 +107,7 @@ feature "Custom Pages" do
|
|||||||
|
|
||||||
scenario "Listed in more information page" do
|
scenario "Listed in more information page" do
|
||||||
custom_page = create(:site_customization_page, :published,
|
custom_page = create(:site_customization_page, :published,
|
||||||
slug: "another-slug",
|
slug: "another-slug",
|
||||||
title_en: "Another custom page",
|
title_en: "Another custom page",
|
||||||
subtitle_en: "Subtitle for custom page",
|
subtitle_en: "Subtitle for custom page",
|
||||||
more_info_flag: true
|
more_info_flag: true
|
||||||
@@ -136,10 +136,10 @@ feature "Custom Pages" do
|
|||||||
expect(page).to have_content("Subtitle for custom page")
|
expect(page).to have_content("Subtitle for custom page")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
context "Translation" do
|
context "Translation" do
|
||||||
|
|
||||||
let(:custom_page) { create(:site_customization_page, :published,
|
let(:custom_page) { create(:site_customization_page, :published,
|
||||||
slug: "example-page",
|
slug: "example-page",
|
||||||
title_en: "Title in English",
|
title_en: "Title in English",
|
||||||
@@ -148,7 +148,7 @@ feature "Custom Pages" do
|
|||||||
subtitle_es: "Subtitulo en Español",
|
subtitle_es: "Subtitulo en Español",
|
||||||
content_en: "Content in English",
|
content_en: "Content in English",
|
||||||
content_es: "Contenido en Español"
|
content_es: "Contenido en Español"
|
||||||
) }
|
) }
|
||||||
|
|
||||||
background do
|
background do
|
||||||
admin = create(:administrator)
|
admin = create(:administrator)
|
||||||
@@ -167,7 +167,7 @@ feature "Custom Pages" do
|
|||||||
|
|
||||||
click_button 'Update Custom page'
|
click_button 'Update Custom page'
|
||||||
expect(page).to have_content "Page updated successfully"
|
expect(page).to have_content "Page updated successfully"
|
||||||
|
|
||||||
visit @edit_page_url
|
visit @edit_page_url
|
||||||
expect(page).to have_field('site_customization_page_title_en', with: 'Title in English')
|
expect(page).to have_field('site_customization_page_title_en', with: 'Title in English')
|
||||||
|
|
||||||
@@ -190,11 +190,11 @@ feature "Custom Pages" do
|
|||||||
visit custom_page.url
|
visit custom_page.url
|
||||||
|
|
||||||
select('English', from: 'locale-switcher')
|
select('English', from: 'locale-switcher')
|
||||||
|
|
||||||
expect(page).to have_content("Title in English")
|
expect(page).to have_content("Title in English")
|
||||||
|
|
||||||
select('Español', from: 'locale-switcher')
|
select('Español', from: 'locale-switcher')
|
||||||
|
|
||||||
expect(page).to have_content("Titulo correcta en Español")
|
expect(page).to have_content("Titulo correcta en Español")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user