diff --git a/spec/features/legislation_spec.rb b/spec/features/legislation_spec.rb index 66491c9fc..93a82e1e9 100644 --- a/spec/features/legislation_spec.rb +++ b/spec/features/legislation_spec.rb @@ -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" @@ -91,4 +94,4 @@ feature 'Legislation' do end -## Notes logged in and not logged in users \ No newline at end of file +## Notes logged in and not logged in users