diff --git a/spec/factories.rb b/spec/factories.rb index 31a14ed50..8a1abf22b 100644 --- a/spec/factories.rb +++ b/spec/factories.rb @@ -733,6 +733,7 @@ LOREM_IPSUM more_info_flag false print_content_flag false status 'draft' + locale 'en' trait :published do status "published" diff --git a/spec/features/admin/site_customization/pages_spec.rb b/spec/features/admin/site_customization/pages_spec.rb index 3e940ea69..1b09a8f01 100644 --- a/spec/features/admin/site_customization/pages_spec.rb +++ b/spec/features/admin/site_customization/pages_spec.rb @@ -30,6 +30,7 @@ feature "Admin custom pages" do fill_in "site_customization_page_subtitle", with: "Page subtitle" fill_in "site_customization_page_slug", with: "example-page" fill_in "site_customization_page_content", with: "This page is about..." + select 'English', from:"site_customization_page_locale" click_button "Create Custom page" diff --git a/spec/features/site_customization/custom_pages_spec.rb b/spec/features/site_customization/custom_pages_spec.rb index 2e2fac84a..640d41848 100644 --- a/spec/features/site_customization/custom_pages_spec.rb +++ b/spec/features/site_customization/custom_pages_spec.rb @@ -7,7 +7,8 @@ feature "Custom Pages" do slug: "conditions", title: "Custom conditions", content: "New text for conditions page", - print_content_flag: true + print_content_flag: true, + locale: "en" ) visit custom_page.url @@ -23,7 +24,8 @@ feature "Custom Pages" do slug: "conditions", title: "Custom conditions", content: "New text for conditions page", - print_content_flag: true + print_content_flag: true, + locale: "en" ) visit custom_page.url @@ -42,7 +44,8 @@ feature "Custom Pages" do slug: "other-slug", title: "Custom page", content: "Text for new custom page", - print_content_flag: false + print_content_flag: false, + locale: "en" ) visit custom_page.url @@ -57,7 +60,8 @@ feature "Custom Pages" do slug: "other-slug", title: "Custom page", content: "Text for new custom page", - print_content_flag: false + print_content_flag: false, + locale: "en" ) visit custom_page.url @@ -72,7 +76,8 @@ feature "Custom Pages" do custom_page = create(:site_customization_page, :published, slug: "another-slug", title: "Another custom page", subtitle: "Subtitle for custom page", - more_info_flag: true + more_info_flag: true, + locale: "en" ) visit more_info_path @@ -84,7 +89,8 @@ feature "Custom Pages" do custom_page = create(:site_customization_page, :published, slug: "another-slug", title: "Another custom page", subtitle: "Subtitle for custom page", - more_info_flag: false + more_info_flag: false, + locale: "en" ) visit more_info_path