fixes draft spec

This commit is contained in:
Juanjo Bazán
2017-06-16 15:19:38 +02:00
parent 2e0b17afcf
commit d165116b5e

View File

@@ -86,15 +86,18 @@ feature 'Admin legislation draft versions' do
click_link 'Version 1' click_link 'Version 1'
fill_in 'legislation_draft_version_title', with: 'Version 1b'
click_link 'Launch text editor' click_link 'Launch text editor'
fill_in 'legislation_draft_version_title', with: 'Version 1b'
fill_in 'legislation_draft_version_body', with: '# Version 1 body\r\n\r\nParagraph\r\n\r\n>Quote' fill_in 'legislation_draft_version_body', with: '# Version 1 body\r\n\r\nParagraph\r\n\r\n>Quote'
within('.fullscreen') do within('.fullscreen') do
click_button 'Save changes' click_link 'Close text editor'
end end
click_button 'Save changes'
expect(page).to have_content 'Version 1b' expect(page).to have_content 'Version 1b'
end end
end end