From fe4af49d06d20e7b5e980be7ac3d73cba0de3136 Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Sun, 2 Feb 2025 18:56:19 +0300 Subject: [PATCH] Don't check ids of new notes in create note system tests --- test/system/create_note_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.5