From 88ba548343c07e1e0c6502d46f5d31c8a001c4da Mon Sep 17 00:00:00 2001 From: taitus Date: Fri, 16 May 2025 12:34:01 +0200 Subject: [PATCH] Unify fill_in field in one line --- spec/system/nested_documentable_spec.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spec/system/nested_documentable_spec.rb b/spec/system/nested_documentable_spec.rb index 1db647358..975ce3d61 100644 --- a/spec/system/nested_documentable_spec.rb +++ b/spec/system/nested_documentable_spec.rb @@ -102,8 +102,7 @@ describe "Nested documentable" do click_link "Add new document" within "#nested-documents" do - input = find("input[name$='[title]']") - fill_in input[:id], with: "My Title" + fill_in "Title", with: "My Title" attach_file "Choose document", file_fixture("empty.pdf") expect(page).to have_css ".loading-bar.complete"