1 require "application_system_test_case"
3 class ResolveNoteTest < ApplicationSystemTestCase
4 test "can resolve an open note" do
5 note = create(:note_with_comments)
11 assert_button "Resolve"
12 assert_no_button "Reactivate"
16 assert_content "Resolved note ##{note.id}"
20 test "can reactivate a closed note" do
21 note = create(:note_with_comments, :closed)
27 assert_no_button "Resolve"
28 assert_button "Reactivate"
32 assert_content "Unresolved note ##{note.id}"
33 assert_no_content "<iframe" # leak from share textarea