From: Anton Khorev Date: Sun, 2 Feb 2025 15:56:19 +0000 (+0300) Subject: Don't check ids of new notes in create note system tests X-Git-Tag: live~58^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/fe4af49d06d20e7b5e980be7ac3d73cba0de3136?ds=inline;hp=8f7f02b025f59db466fdb22ea3686cb6c5adc400 Don't check ids of new notes in create note system tests --- diff --git a/test/system/create_note_test.rb b/test/system/create_note_test.rb index dd13a286f..410d5dfb7 100644 --- a/test/system/create_note_test.rb +++ b/test/system/create_note_test.rb @@ -23,7 +23,7 @@ class CreateNoteTest < ApplicationSystemTestCase 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 @@ -56,7 +56,7 @@ class CreateNoteTest < ApplicationSystemTestCase click_on "Add Note" - assert_content "Unresolved note ##{Note.last.id}" + assert_content "Unresolved note #" assert_content "Some newly added note description" end end