makes more tests green
This commit is contained in:
@@ -26,16 +26,12 @@ feature 'Legislation' do
|
||||
fill_in 'annotator-field-0', with: 'this is my annotation'
|
||||
page.find(:css, ".annotator-controls a[href='#save']").click
|
||||
|
||||
within ".annotate" do
|
||||
expect(page).to have_css ".annotator-hl[data-annotation-id]"
|
||||
end
|
||||
|
||||
visit legislation_path(legislation)
|
||||
|
||||
within ".annotate" do
|
||||
expect(page).to have_css ".annotator-hl[data-annotation-id]"
|
||||
end
|
||||
end
|
||||
|
||||
scenario 'Update' do
|
||||
legislation = create(:legislation, body: "In order to achieve...")
|
||||
@@ -79,11 +75,9 @@ feature 'Legislation' do
|
||||
|
||||
visit legislation_path(legislation)
|
||||
|
||||
within ".annotate" do
|
||||
expect(page).to have_css ".annotator-hl[data-annotation-id='#{annotation1.id}']"
|
||||
expect(page).to have_css ".annotator-hl[data-annotation-id='#{annotation2.id}']"
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user