Add additional check on on the legislation spec
This commit is contained in:
@@ -43,12 +43,15 @@ feature 'Legislation' do
|
||||
|
||||
visit legislation_path(legislation)
|
||||
|
||||
expect(page).to have_css ".annotator-hl"
|
||||
page.find(:css, ".annotator-hl").click
|
||||
page.find(:css, ".annotator-edit").click
|
||||
|
||||
fill_in 'annotator-field-0', with: 'edited annotation'
|
||||
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
|
||||
expect(page).to have_content "edited annotation"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user