Adds homepage phase and tab to legislation processes show

This commit is contained in:
decabeza
2019-01-09 12:29:00 +01:00
parent 7724f9421f
commit 73637de0d0
6 changed files with 27 additions and 4 deletions

View File

@@ -201,6 +201,10 @@ feature 'Legislation' do
visit legislation_process_path(process)
within(".key-dates") do
expect(page).to have_content("Homepage")
end
expect(page).to have_content("This is the process homepage")
expect(page).not_to have_content("Participate in the debate")
end
@@ -213,6 +217,10 @@ feature 'Legislation' do
visit legislation_process_path(process)
within(".key-dates") do
expect(page).not_to have_content("Homepage")
end
expect(page).to have_content("This phase is not open yet")
expect(page).not_to have_content("This is the process homepage")
end