Adds specs for additional info button
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user