]> git.openstreetmap.org Git - rails.git/commitdiff
Don't check ids of new notes in create note system tests
authorAnton Khorev <tony29@yandex.ru>
Sun, 2 Feb 2025 15:56:19 +0000 (18:56 +0300)
committerAnton Khorev <tony29@yandex.ru>
Sun, 2 Feb 2025 15:56:19 +0000 (18:56 +0300)
test/system/create_note_test.rb

index dd13a286f55e3061be1c51bbba764fcc24628ce5..410d5dfb7b0fdcaa0e0a42486445a2117cde4044 100644 (file)
@@ -23,7 +23,7 @@ class CreateNoteTest < ApplicationSystemTestCase
       fill_in "text", :with => "Some newly added note description"
       click_on "Add Note"
 
       fill_in "text", :with => "Some newly added note description"
       click_on "Add Note"
 
-      assert_content "Unresolved note ##{Note.last.id}"
+      assert_content "Unresolved note #"
       assert_content "Some newly added note description"
     end
   end
       assert_content "Some newly added note description"
     end
   end
@@ -56,7 +56,7 @@ class CreateNoteTest < ApplicationSystemTestCase
 
       click_on "Add Note"
 
 
       click_on "Add Note"
 
-      assert_content "Unresolved note ##{Note.last.id}"
+      assert_content "Unresolved note #"
       assert_content "Some newly added note description"
     end
   end
       assert_content "Some newly added note description"
     end
   end