Adds specs for additional info button

This commit is contained in:
decabeza
2018-02-19 17:19:29 +01:00
parent ee7ca37d18
commit f2e5f6ff76

View File

@@ -124,6 +124,23 @@ feature 'Legislation' do
expect(page).to have_content(document.title) expect(page).to have_content(document.title)
end end
scenario 'show additional info button' do
process = create(:legislation_process, additional_info: "Text for additional info of the process")
visit legislation_process_path(process)
expect(page).to have_content("Additional information")
expect(page).to have_content("Text for additional info of the process")
end
scenario 'do not show additional info button if it is empty' do
process = create(:legislation_process)
visit legislation_process_path(process)
expect(page).to_not have_content("Additional information")
end
end end
context 'debate phase' do context 'debate phase' do