legislation annotation spec cleanup
This commit is contained in:
@@ -26,17 +26,13 @@ feature 'Legislation' do
|
|||||||
page.find(:css, ".annotator-controls a[href='#save']").click
|
page.find(:css, ".annotator-controls a[href='#save']").click
|
||||||
|
|
||||||
within ".annotate" do
|
within ".annotate" do
|
||||||
expect(page).to have_css ".annotator-hl"
|
expect(page).to have_css ".annotator-hl[data-annotation-id]"
|
||||||
end
|
|
||||||
|
|
||||||
annotation = Annotation.last
|
|
||||||
within ".annotate" do
|
|
||||||
expect(page).to have_css ".annotator-hl[data-annotation-id='#{annotation.id}']"
|
|
||||||
end
|
end
|
||||||
|
|
||||||
visit legislation_path(legislation)
|
visit legislation_path(legislation)
|
||||||
|
|
||||||
within ".annotate" do
|
within ".annotate" do
|
||||||
expect(page).to have_css ".annotator-hl[data-annotation-id='#{annotation.id}']"
|
expect(page).to have_css ".annotator-hl[data-annotation-id]"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user