]> git.openstreetmap.org Git - rails.git/blob - test/system/note_comments_test.rb
Merge pull request #3691 from AntonKhorev/wikipedia-secondary-links
[rails.git] / test / system / note_comments_test.rb
1 require "application_system_test_case"
2
3 class NoteCommentsTest < ApplicationSystemTestCase
4   def test_action_text
5     note = create(:note_with_comments)
6     sign_in_as(create(:user))
7     visit note_path(note)
8
9     assert_button "Resolve"
10     assert_button "Comment", :disabled => true
11
12     fill_in "text", :with => "Some text"
13
14     assert_button "Comment & Resolve"
15     assert_button "Comment"
16   end
17 end