Add additional check on on the legislation spec
This commit is contained in:
@@ -43,12 +43,15 @@ feature 'Legislation' do
|
|||||||
|
|
||||||
visit legislation_path(legislation)
|
visit legislation_path(legislation)
|
||||||
|
|
||||||
|
expect(page).to have_css ".annotator-hl"
|
||||||
page.find(:css, ".annotator-hl").click
|
page.find(:css, ".annotator-hl").click
|
||||||
page.find(:css, ".annotator-edit").click
|
page.find(:css, ".annotator-edit").click
|
||||||
|
|
||||||
fill_in 'annotator-field-0', with: 'edited annotation'
|
fill_in 'annotator-field-0', with: 'edited annotation'
|
||||||
page.find(:css, ".annotator-controls a[href='#save']").click
|
page.find(:css, ".annotator-controls a[href='#save']").click
|
||||||
|
|
||||||
|
expect(page).to_not have_css('span', text: 'my annotation')
|
||||||
|
|
||||||
page.find(:css, ".annotator-hl").click
|
page.find(:css, ".annotator-hl").click
|
||||||
expect(page).to have_content "edited annotation"
|
expect(page).to have_content "edited annotation"
|
||||||
|
|
||||||
@@ -91,4 +94,4 @@ feature 'Legislation' do
|
|||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
## Notes logged in and not logged in users
|
## Notes logged in and not logged in users
|
||||||
|
|||||||
Reference in New Issue
Block a user