Fixed tests

Added new custom pages attribute to tests to make them run properly.
This commit is contained in:
María Checa
2017-07-02 22:13:40 +02:00
parent 8894ec4f7c
commit dca346bd4c
3 changed files with 14 additions and 6 deletions

View File

@@ -733,6 +733,7 @@ LOREM_IPSUM
more_info_flag false
print_content_flag false
status 'draft'
locale 'en'
trait :published do
status "published"

View File

@@ -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"

View File

@@ -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