1 require "application_system_test_case"
3 class CreateNoteTest < ApplicationSystemTestCase
4 test "can create note" do
5 visit new_note_path(:anchor => "map=18/0/0")
7 assert_button "Add Note", :disabled => true
9 fill_in "text", :with => "Some newly added note description"
12 assert_content "Unresolved note ##{Note.last.id}"
13 assert_content "Some newly added note description"
16 test "cannot create note when api is readonly" do
17 with_settings(:status => "api_readonly") do
18 visit new_note_path(:anchor => "map=18/0/0")
20 assert_no_button "Add Note", :disabled => true