]> git.openstreetmap.org Git - rails.git/blobdiff - test/system/note_comments_test.rb
Use data attributes to pass alternative button labels
[rails.git] / test / system / note_comments_test.rb
diff --git a/test/system/note_comments_test.rb b/test/system/note_comments_test.rb
new file mode 100644 (file)
index 0000000..23f3fc9
--- /dev/null
@@ -0,0 +1,17 @@
+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