Merge pull request #2785 from ziyan-junaideen/feature/1-nav-content-blocks
Configurable Top Right and Main Navigation Menus
This commit is contained in:
@@ -30,4 +30,34 @@ feature "Custom content blocks" do
|
||||
expect(page).to have_content("contenido para footer")
|
||||
expect(page).not_to have_content("content for footer")
|
||||
end
|
||||
|
||||
scenario "main navigation left" do
|
||||
create(:site_customization_content_block, name: "subnavigation_left", locale: "en", body: "content for left links")
|
||||
create(:site_customization_content_block, name: "subnavigation_left", locale: "es", body: "contenido para left links")
|
||||
|
||||
visit "/?locale=en"
|
||||
|
||||
expect(page).to have_content("content for left links")
|
||||
expect(page).not_to have_content("contenido para left links")
|
||||
|
||||
visit "/?locale=es"
|
||||
|
||||
expect(page).to have_content("contenido para left links")
|
||||
expect(page).not_to have_content("content for left links")
|
||||
end
|
||||
|
||||
scenario "main navigation right" do
|
||||
create(:site_customization_content_block, name: "subnavigation_right", locale: "en", body: "content for right links")
|
||||
create(:site_customization_content_block, name: "subnavigation_right", locale: "es", body: "contenido para right links")
|
||||
|
||||
visit "/?locale=en"
|
||||
|
||||
expect(page).to have_content("content for right links")
|
||||
expect(page).not_to have_content("contenido para right links")
|
||||
|
||||
visit "/?locale=es"
|
||||
|
||||
expect(page).to have_content("contenido para right links")
|
||||
expect(page).not_to have_content("content for left links")
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user