Add census terms page by default
This commit is contained in:
@@ -11,17 +11,17 @@ describe "Admin custom pages", :admin do
|
||||
end
|
||||
|
||||
scenario "should contain all default custom pages published populated by db:seeds" do
|
||||
slugs = %w[accessibility conditions faq privacy welcome_not_verified
|
||||
slugs = %w[accessibility census_terms conditions faq privacy welcome_not_verified
|
||||
welcome_level_two_verified welcome_level_three_verified]
|
||||
|
||||
expect(SiteCustomization::Page.count).to be 7
|
||||
expect(SiteCustomization::Page.count).to be 8
|
||||
slugs.each do |slug|
|
||||
expect(SiteCustomization::Page.find_by(slug: slug).status).to eq "published"
|
||||
end
|
||||
|
||||
visit admin_site_customization_pages_path
|
||||
|
||||
expect(all("[id^='site_customization_page_']").count).to be 7
|
||||
expect(all("[id^='site_customization_page_']").count).to be 8
|
||||
slugs.each do |slug|
|
||||
expect(page).to have_content slug
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user