fixes text on publish comment button

This commit is contained in:
decabeza
2017-06-28 13:40:37 +02:00
parent d2a06f99bf
commit a97130934a
2 changed files with 3 additions and 5 deletions

View File

@@ -16,9 +16,7 @@
<div class="comment-actions">
<a class="cancel-comment" href="#" data-cancel-annotation><%= t('legislation.annotations.comments.cancel') %></a>
<%= f.submit class: 'button publish-comment' do %>
<strong><%= t('legislation.annotations.comments.publish_comment') %></strong>
<% end %>
<%= f.submit value: t('legislation.annotations.comments.publish_comment'), class: 'button publish-comment' %>
</div>
<%= f.hidden_field :quote %>

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 "Create Annotation"
page.click_button "Publish Comment"
expect(page).to have_content "Comment can't be blank"
fill_in 'legislation_annotation_text', with: 'this is my annotation'
page.click_button "Create Annotation"
page.click_button "Publish Comment"
expect(page).to have_css ".annotator-hl"
first(:css, ".annotator-hl").click