openstreetmap-website/test/system/note_comments_test.rb
Andy Allan 9bb8dd739a Use data attributes to pass alternative button labels
This allows the text to be defined in the html partials, instead
of looking up the i18n via javascript.
2023-02-01 17:24:47 +00:00

17 lines
404 B
Ruby

require "application_system_test_case"
class NoteCommentsTest < ApplicationSystemTestCase
def test_action_text
note = create(:note_with_comments)
sign_in_as(create(:user))
visit note_path(note)
assert_button "Resolve"
assert_button "Comment", :disabled => true
fill_in "text", :with => "Some text"
assert_button "Comment & Resolve"
assert_button "Comment"
end
end