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")
8 assert_button "Add Note", :disabled => true
10 fill_in "text", :with => "Some newly added note description"
13 assert_content "Unresolved note ##{Note.last.id}"
14 assert_content "Some newly added note description"
18 test "cannot create note when api is readonly" do
19 with_settings(:status => "api_readonly") do
20 visit new_note_path(:anchor => "map=18/0/0")
23 assert_no_button "Add Note", :disabled => true