fixes specs

This commit is contained in:
rgarcia
2017-06-07 10:32:25 +02:00
parent 1a46b4d4cb
commit f66102abdc
2 changed files with 4 additions and 4 deletions

View File

@@ -154,11 +154,11 @@ feature 'Legislation Draft Versions' do
page.find(:css, ".legislation-annotatable").double_click
page.find(:css, ".annotator-adder button").click
page.click_button "Publish Comment"
page.click_button "Create Annotation"
expect(page).to have_content "Comment can't be blank"
fill_in 'legislation_annotation_text', with: 'this is my annotation'
page.click_button "Publish Comment"
page.click_button "Create Annotation"
expect(page).to have_css ".annotator-hl"
first(:css, ".annotator-hl").click