fixes draft spec
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user